Currently Being ModeratedMay 3, 2012 3:12 PM (in response to good_nature)
- the path to a shared folder (in colon delimited form) will be SharedVolumeName:Workflows:Sheetfed:. SharedVolumeName will be the name of the mounted volume as it appears on the desktop, but you don't want to specify the path to the desktop, just start with the volume.
- the move command takes a folder object for its 'to' parameter, so if you're using a string path you'll want to say "move added_items to folder destFolder"
Currently Being ModeratedMay 3, 2012 3:54 PM (in response to twtwtw)
I have this:
set destFolder to (":dx1070:Workflows:Sheetfed:")
on adding folder items to this_folder after receiving added_items
tell application "Finder"
move added_items to folder destFolder
end adding folder items to
But still not doing it yet.
Took off the leading colon on destFolder ie ":dx1070:Workflows:Sheetfed:", still no.
Any more help would be great!
Currently Being ModeratedMay 3, 2012 4:05 PM (in response to good_nature)
interesting. taking off the leading colon is the correct move, and that should have worked. are you seeing any errors in Console.app? the only two possible errors I can think of are (1) that the Finder doesn't like the file format folder actions is sending to it, or (2) you've messed up destination path. both of those would show in console, though.
Currently Being ModeratedMay 3, 2012 4:29 PM (in response to good_nature)
well, I've tested the finder 'move' command and it works fine in that context on my machine, so the problem must be with the path you're specifying. You have a mounted volume called dx1070 with the correct folder hierarchy? Is this volume a HFS volume, or is it formatted for Windows or unix?
Currently Being ModeratedMay 3, 2012 6:27 PM (in response to good_nature)
well, I don't have a Windows share that I can test; best I can do is set up a windows-formatted disk image and test that, and that seems to work fine. You might try changing the syntax. In the Finder you can say:
move added_items to folder "Sheetfed" of folder "Workflows" of disk "dx1070"
as long as the disk is mounted that should work. otherwise you're going to have to start debugging with display dialog commands and/or try blocks (remember that from Folder Actions you may need to put display dialog commands inside a Finder or System Events tell block - I don't think you can display a dialog straight from applescript in a folder action).