Problem 1.
The applescript when run from the Script Editor does not run correctly the first time it is run. It does run correctly the second time it is run. Ideas?
Problem 2.
I have an applescript that does not run from the script icon in the main menu bar. This applescript does run when run from the Script Editor?
Any insights would be greatly appreciated. The code is simply too extensive to put here. So, I am really interested in any ideas on how I should get started tracing this issue down.
Thanks very much.
Without code it’s hard to tell and often lead to long winded topics and I’ll bet that all the possible error I can come up with is longer than your script. Most common mistake is not declaring and initializing global variables at the beginning of your script or reading files with open for access.
If that’s not the case, I would suggest to share code or at least narrow it down to code that matters.
Both problems were caused by using TextEdit to open a file and copy the contents to the clipboard for further processing. I replaced the use of TextEdit with directly reading the file through Applescript. Problems gone.
Thank you DJ Bazzie Wazzie for your kind response.