![]() The “alias” in front of that turns the full HFS path into an AppleScript alias. You can run that script from the Script Editor.app to see how it works.Įssentially it takes a known location (path to…) and converts the resulting alias to a string.įrom that anchor-point the script appends the rest of the path (from the anchor) to the file or folder. It will assemble this part of the code for you and places it on the Clipboard: alias ((path to downloads folder as text) & "YourFolderName") If you select an item in the Finder and run this script: I’m not entirely clean on what are the AppleScript commands and what are the placeholder names. If ddButton = "Copy Error Message" then set the clipboard to e (display dialog e with title "ERROR!" buttons ¬ Tell application (path to frontmost application as text) to set ddButton to button returned of ¬ Set e to e & return & return & "Num: " & n # Task: Move the selected items to a destination folder Here’s the same script with better error-checking:. Move finderSelectionList to destinationFolder If length of finderSelectionList = 0 then error "No files were selected in the Finder!" Set finderSelectionList to selection as alias list Set destinationFolder to alias ((path to downloads folder as text) & "YourFolderName") ![]() Here’s pretty much the simplest possible script:. Putting relative-aliases on the Clipboard See this post to get a tool to create a relative-alias for your destination folder. ![]() Is there perhaps an AppleScript that could be triggered and edited for different folders? ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |