Copy files to /Shortcuts/copy files
Copy files to specific folder
Make folder to save too
Adds word Copy to end of file name
Created by me
What's New
Version 1.1
Code changes
What it does
26 actions-
Choose from Menu
-
Choose from Menucopy files
-
Get File
-
Repeat with Each
-
Get Details of Files
-
Set VariableExtension
-
Get Name
-
Set Name
-
Choose from Menucopy files save too
-
Get File
-
Repeat with Each
-
Get Details of Files
-
Set VariableExtension
-
Get Name
-
Set Name
-
Save File
-
Stop This Shortcut
-
Choose from Menucreate folder to save too
-
Ask for InputSet folder name to use
-
Set VariableFolder name
-
Create Folder
-
Show Result
-
Stop This Shortcut
-
Create Folder
-
Save File
-
Show Result
View as code
Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.
#include 'actions/documents'
#define color taupe
#define glyph magicWandAlt
menu "" {
item "copy files":
const File = getFileFromFolder(, "")
for _ in File {
getFileDetail(nil, "File Extension")
@Extension
getName(@RepeatItem)
setName(@RepeatItem, "{}Copy.{@Extension}")
}
item "copy files save too":
const File1 = getFile("")
for _ in File1 {
getFileDetail(nil, "File Extension")
@Extension
getName(@RepeatItem)
const RenamedItem = setName(@RepeatItem, "{}Copy.{@Extension}")
saveFilePrompt(RenamedItem)
}
stop()
item "create folder to save too":
prompt("Set folder name to use")
@FolderName
createFolder(@FolderName)
show("New folder is /Shortcuts/{@FolderName}")
stop()
}
createFolder("copy files")
saveFile("copy files", MenuResult, true)
show("In folder /Shortcuts/copy files")
Open in Cherri Playground
Decompiled with cherri 2.3.0 (GPL-2.0). May need small fixes before it compiles.
Ratings & Reviews
Write a Review–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings
No reviews yet. Be the first to share what you think!
Advertisement
More by hunter9888x
You Might Also Like
Advertisement