• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
UI script fails when run from Mail.app's script menu
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: UI script fails when run from Mail.app's script menu
      • From: Bill Cheeseman <email@hidden>
References: 
 >do shell script "perl... " to find/replace in a string (From: Joseph Weaks <email@hidden>)
 >Re: do shell script "perl... " to find/replace in a string (From: Christopher Nebel <email@hidden>)

  • Prev by Date: Re: Template for Debugging "on Open..." Handler
  • Next by Date: Address Book's Name & Company Name
  • Previous by thread: Re: do shell script "perl... " to find/replace in a string
  • Next by thread: Re: UI script fails when run from Mail.app's script menu
  • Index(es):
    • Date
    • Thread