• 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
Note on ASE scripting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Note on ASE scripting


  • Subject: Note on ASE scripting
  • From: Luther Fuller <email@hidden>
  • Date: Mon, 25 Jul 2011 12:42:34 -0500

I should have given this thread a more general title such as "Timing in Lion scripting".

I found another problem (in Script Bundle Tool) that was easy to fix, like this ...

tell application "System Events"
delay 0.5
set visible of (some process whose frontmost is true) to false -- hides Script Bundle Tool
delay 1 -- added to fix a timing problem, waiting for SBT to hide
set frontProc to (name of some process whose frontmost is true) as text -- name of application now showing in the menu bar
end tell

My general impressing is that Lion runs faster that its predecessors. On the other hand, this is the second fix I've made by simply inserting a delay. I have some other scripts that are not operating correctly and I suspect that it's a timing problem that will be fixed with a delay. (I'll let you know when I get around to them.)

It would be helpful to know if others are encountering this problem, too.

 _______________________________________________
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

  • Prev by Date: Re: Lion crashed by AppleScript
  • Next by Date: AUTO: Allyn Martin is out of office.
  • Previous by thread: Re: Note on ASE scripting
  • Next by thread: AUTO: Allyn Martin is out of office.
  • Index(es):
    • Date
    • Thread