UI script fails when run from Mail.app's script menu
UI script fails when run from Mail.app's script menu
- Subject: UI script fails when run from Mail.app's script menu
- From: Joseph Weaks <email@hidden>
- Date: Fri, 19 Mar 2004 21:47:40 -0600
I have a script library that uses UI scripting to do stuff. I run the
script with
run script alias scriptPath with parameters {theProcess}
When I run it with that line in an environment such as Smile, the
script works great (brings mail.app to the front, copies the selection
dong the UI scripting of "c" with command down, does some stuff, and
then pastes a result using "v" with command down.
But, when I put a script with this run script line in mail.app's script
menu, it fails. (First off, I must have "run script alias scriptPath"
where it's optional in Smile. I'd like to know what that is too). It
fails in that the UI scripting doesn't work... the "c" with command
down is not working. I'm not posting that code, because it works fine
when run from another environment.
So, what is it I need to know about running scripts from applications
that have their own script menu?
Thanks,
Joe Weaks
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.