yeah, this works great. Thanks for everyone’s help!
It works fine in the script editor but when I paste into run applescript with or without the on run(input, parameters)
it bombs. It hangs up at the properties declaration.
without the on run command it hangs up at the first line of the try block at
“try
set ff to open for access file targetFile with write permission”
with the error message “expect end of line but found identifier.”
why does automator act differently than the script editor?