• 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 09:27:10 -0500

I have a script that creates application bundles from source files.
In Lion it failed. Bad news, since I use it with every script I write.
Good news. The fix is easy ...

tell application "AppleScript Editor"
launch
open sourceRef -- document name ends with .app iff file displays .app
delay 1 -- ADD THIS TO GIVE ASE AND THE DOCUMENT TIME TO OPEN.
if not (exists document sourceName) then
if not dontQuit then quit
error "The source file could not be opened because it is not editable."
end if
--
-- lots of other stuff
--
end tell

If you write scripts that tell ASE, you might find this useful.

Meanwhile, a new Script Bundle Tool, version 4.3, will be available when I am sure it is working correctly.
(So far, after the fix, above, it seems to be working very nicely.)

 _______________________________________________
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: Note on ASE scripting
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: Detect Full Screen?
  • Next by Date: Re: Detect Full Screen?
  • Previous by thread: Re: Detect Full Screen?
  • Next by thread: Re: Note on ASE scripting
  • Index(es):
    • Date
    • Thread