More AppleScript Help
In AppleScript, I want to figure out how to pick a file, pick an output folder, then copy the selected file to the selected output folder.
I've tried this.
It compiles without error, but doesn't do anything I want it to. Can someone tell me how to do this correctly?
You can use Quicksilver to accomplish this and much faster since it finds the file as you type the name.
Imo this script won't really save you time on a daily basis since you have to manually select everything anyway ... why not just drag and drop :)
however if you want to use applescript, I came up with the following:
choose file without invisibles
set SELECTEDFILE to the result
choose folder without invisibles
set OUTPUT to the result
tell application "Finder" to duplicate SELECTEDFILE to folder OUTPUT
Thanks, man. I'm making an AppleScript application, this is not for my own convenience.
good luck with your app and future scripting
on open thefile
set t to choose folder
repeat with i in thefile
tell application "Finder"
move i to t
save it as an application in script editor and drop stuff on it.
|All times are GMT -4. The time now is 07:29 PM.|
Powered by vBulletin
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.