• 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
How to speed up script execution?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to speed up script execution?


  • Subject: How to speed up script execution?
  • From: Pat Stanford <email@hidden>
  • Date: Tue, 17 May 2011 10:46:44 -0700

I have a very simple script that I am running from the System Scripts menu. It is stored in ~:Library:Scripts:Applications:Mail. I have tried saving it as both a script and as an application.  In both cases it is taking about 5 seconds for the first run after a restart and about 2 seconds for every invocation after that.  This seems to long and feels like an eternity as I can't switch to a different window or do anything until the paste occurs.

Any suggestions on changes to the script or how I am saving it to make it run faster?

Thanks,
Pat
Patrick Stanford

Perfection is the new mediocre when you are using Apple's products.
-Andy Inhatko, MacNotables #643, 5/10/06


tell application "Mail"
activate
set pts to content of signature "Rochem.us"
end tell

set the clipboard to pts

tell application "System Events"
tell process "Mail"
keystroke "v" using {command down}
end tell
end tell

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: How to speed up script execution?
      • From: KOENIG Yvan <email@hidden>
  • Prev by Date: Problem with this list
  • Next by Date: Re: Problem with this list
  • Previous by thread: Re: Problem with this list
  • Next by thread: Re: How to speed up script execution?
  • Index(es):
    • Date
    • Thread