• 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
Re: temporary items
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: temporary items


  • Subject: Re: temporary items
  • From: Luther Fuller <email@hidden>
  • Date: Fri, 12 Aug 2011 10:24:19 -0500

On Aug 11, 2011, at 5:35 PM, Luther Fuller wrote:

I have a script, "Script Bundle Tool", that I've been using for years without any problem.

I now have Script Bundle Tool working correctly, but I ran into another problem getting there.
You might be interested, so I'll pass it along.

When SBT makes an application bundle, it should ...
1. Open a script with ASE;
2. Create, via ASE, an application bundle in the temporary items folder;
3. Quit ASE.

Step 3 has been failing. I suspected due to this line ...

tell application "Finder" to set dontQuitEditor to (exists process "AppleScript Editor") or (exists process "Script Editor")

I tested this line via Smile and could find nothing wrong with it. It ought to work. But it doesn't!
I did notice that process in Finder's dictionary is "Legacy", so I tried this in SBT ...

tell application "System Events" to set dontQuitEditor to (exists process "AppleScript Editor") or (exists process "Script Editor")

This fixed the problem! Yet, I could not find a specific problem with the first line.
Perhaps it only fails when run from an application bundle. (?)

BTW Re: Script size question asked by Alex Zavatone ...
When I use SBT to create an application bundle from a large script (578190 chars = 104401 words = 12578 lines, so says TextWrangler) steps 1, 2, 3 takes about 1 sec. It's very quick.

 _______________________________________________
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: temporary items
      • From: Luther Fuller <email@hidden>
References: 
 >temporary items (From: Luther Fuller <email@hidden>)

  • Prev by Date: Re: Script size question
  • Next by Date: Re: temporary items
  • Previous by thread: Re: temporary items
  • Next by thread: Re: temporary items
  • Index(es):
    • Date
    • Thread