'Is there some optional package you can install to get more automator actions?' - no. 'It seems like the finder section in Automater is pretty weak, and is missing tons of common file operations.' - from Apple, yes from others offering free 'Actions', no. It is left as an exercise for the programmer to determine if the destination folder is on another partition, and to delete the original items - after a guaranteed copy has been performed. , and yes - if the destination folder is on another partition, even the 'move' command actually 'copy's the item(s). Tell application "Finder" to move (files of folder (input as string)) to folder (((path to desktop folder from user domain) as string) & "Test:") One way to 'move' files - from one folder to another folder, on the same partition, is shown below. Tell application "Finder" to set input to files of folder (input as string) Then replace the contents of the 'Run AppleScript's textedit field with. To explore the Automator User Guide, click Table of Contents at the top of the page, or enter a word or phrase in the search field. How to use Automator workflows with the Shortcuts app. above - select the 'Library, Applications, Automators 'Run AppleScript' Action. automator - Is there a way for OSX to auto-copy a file somewhere whenever its updated - Ask Different. Your workflows automatically become a collection of shortcuts ready to run, saving you time and making Shortcuts exceptionally useful right away. tell application 'Finder' set selected to selection set currentfolder to item 1 of selected set mlist to every file of currentfolder repeat with thisfile in mlist set curext to name extension of thisfile set newname to text 1 thru -((length of curext) + 2) of (name of thisfile as text) set newfolder to make new folder with properties. 'This still gets folders in the given folder.' - yes, the 'Library' and related 'Actions', provided do list all items (files and folders) of the choosen folder not, the contents of any sub-folders (of the choosen folder), as per the original posts request. Cshapple's entry is a new subject, and should have been posted as such.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |