I have an Applescript (modified someones) to move Mail from a certain folder into Omnifocus, then move the mail out of this folder. I set it to run every 5 minutes.
All seemed to work fine until every 5 minutes the same OF task is created, even though the original mail is not in the folder it is checking!
Weird I thought. So I thought it must have been remembering the variables the script set at the first time I run it.
So now I set the variables (the main OF task object) to nothing, and that seems to have fixed it.
If I run the script within the editor direct it did not keep doing this.
So basically I just wanted to confirm if running it using lingon or even the osascript command, means the variables are remembered or something?
The command line I run in longon is:
/usr/bin/osascript /Users/me/Library/Scripts/send-follow-up-to-omnifocus.scpt
Thanks
All seemed to work fine until every 5 minutes the same OF task is created, even though the original mail is not in the folder it is checking!
Weird I thought. So I thought it must have been remembering the variables the script set at the first time I run it.
So now I set the variables (the main OF task object) to nothing, and that seems to have fixed it.
If I run the script within the editor direct it did not keep doing this.
So basically I just wanted to confirm if running it using lingon or even the osascript command, means the variables are remembered or something?
The command line I run in longon is:
/usr/bin/osascript /Users/me/Library/Scripts/send-follow-up-to-omnifocus.scpt
Thanks
Last edited: