Hi all. I'm new to this forum and extremely new to apple scripting.
I want to set up a watched folder where it will replace part of the name of the files I'm dropping into a folder (ie. name_1up to name_3up) as soon as a new file is placed in the folder.
I tried doing this in automator first. I saved it as a script and attached the script to the folder. It works if I hit run but it doesn't work when I drop a file in the folder. I don't want to set up something that I'd have to run every time, rather a script that would automatically rename the file,
I saw in other forums that this can be accomplished thru applescript, possible shell script?
Another possibility is saving the automator workflow as an app and having a folder action that triggers that app as soon as a new file is dropped in. But again, I can't find a way of doing this and I'm honestly a bit confused as to how to go about writing the action script itself.
I saw this script in another part of this forum but was unable to make it work.
tell application "KoLmafia"
open
end tell
I can understand that it has no even to trigger this but have no idea how to make the even or attach it to the folder
Help anyone?
Thanks for taking the time to read, any help will be greatly appreciated.
dlydiamg
I want to set up a watched folder where it will replace part of the name of the files I'm dropping into a folder (ie. name_1up to name_3up) as soon as a new file is placed in the folder.
I tried doing this in automator first. I saved it as a script and attached the script to the folder. It works if I hit run but it doesn't work when I drop a file in the folder. I don't want to set up something that I'd have to run every time, rather a script that would automatically rename the file,
I saw in other forums that this can be accomplished thru applescript, possible shell script?
Another possibility is saving the automator workflow as an app and having a folder action that triggers that app as soon as a new file is dropped in. But again, I can't find a way of doing this and I'm honestly a bit confused as to how to go about writing the action script itself.
I saw this script in another part of this forum but was unable to make it work.
tell application "KoLmafia"
open
end tell
I can understand that it has no even to trigger this but have no idea how to make the even or attach it to the folder
Help anyone?
Thanks for taking the time to read, any help will be greatly appreciated.
dlydiamg