The rule below opens downloaded RTF files, send a copy to my desktop, renames the file and subfolder it is sorted in and finally opens it in Pages.

So far, so good.
The last piece is an Applescript I wrote (from information I gleaned online, I am not a coder) that is meant to turn on Track Changes in Pages. It works well when ran inside Script Editor, but I launch the rule, it keeps opening duplicates of the RTF file in Pages (i.e. filename_2, filename3, etc.) for as long as the original RTF files remains in the Download folder.
Here is the script:
- Code: Select all
tell application "Pages"
activate
tell application "System Events"
tell process "Pages"
click menu item "Track Changes" of menu "Edit" of menu bar 1
end tell
end tell
end tell
I know this isn't an AppleScript forum but hope someone could tell me how to fix the problem.
Thanks a lot.
P.S. I saw in a similar thread that the problem could be that the rule "doesn't filter out the output of the script", but to be honest I don't know what that means.