Quietly quitting URL Access?
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