• 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
Quietly quitting URL Access?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Quietly quitting URL Access?


  • Subject: Quietly quitting URL Access?
  • From: Harald E Brandt <email@hidden>
  • Date: Sun, 3 Jun 2001 16:29:48 +0200

I am trying to Quietly quit URL Access Scripting, but in vain!

In the end of my script I have a "catch all cases":
quit application "URL Access Scripting"
In some situations , however, the URLAS was never invoked, so that line should really do nothing more than ensure it is off.

However, sometimes that line actually launches URLAS just to quit it!
Not always, only sometimes - about every second run!
I think that is ugly, so I wanted to circumvent it, so I wrote:

try --if "URL Access Scripting" is a process then quit it.
--Avoids occasional launches of it if it is not already running
tell application "Finder"
process "URL Access Scripting"
quit application "URL Access Scripting"
end tell
end try

Most often this works in the application script when it is run normally.
But to my astonishment, when exactly the same thing is run by:
"run script alias...." then it does never quit the URLAS - i.e Finder doesn't think it is a process!??

First of all, why is this happening?
Second, is there a better (simple and clean) alternative that always will quit URLAS without the risks of that app being launched just to quit?


Best Regards,

______heb________________________________________________________________
Harald E Brandt email@hidden PGP/MIME aware http://heb.surf.to


  • Prev by Date: Re: Doh! Limit on URL Access Scripting characters?
  • Next by Date: Current date in standard additions dictionary
  • Previous by thread: Re: A reference to problem (solved)
  • Next by thread: Current date in standard additions dictionary
  • Index(es):
    • Date
    • Thread