Re: detect launch of file?
Re: detect launch of file?
- Subject: Re: detect launch of file?
- From: Sander Tekelenburg <email@hidden>
- Date: Tue, 13 Mar 2001 08:52:18 +0100
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
At 09:45 -0800 UTC, on 12/03/2001, Phil Calvert wrote:
>
Is there any way (via applescript) to detected the launch of a file? I want
>
an applescript to do something only if a certain file type is launched.
I wouldn't know, but I doubt it. However, it _is_ possible to ask the Finder
whether or not an application is running[*]. If by "file type" you don't mean
it in the general sense, but a file that is specific to an application, then
perhaps this is a viable route to take. (Because opening a file would
activate the application).
This would mean having to use a stay-open applet that uses an "on idle"
handler so it will continuously checks for changes.
[*]
tell app "Finder"
get processes
end
HTH
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use <
http://www.pgp.com>
iQA/AwUBOq3RsOsywKfXgqKdEQJifQCg3ddQS9jbLKIITJmGQzMzwMwZV8QAoNA5
M2r8kwAOtdbfR0zzeX+auoEX
=GVyi
-----END PGP SIGNATURE-----
--
Sander Tekelenburg, <
mailto:email@hidden>
Web site at <
http://www.euronet.nl/~tekelenb/>
Mac user: "Macs only have 40 viruses, tops!"
PC user: "SEE! Not even the virus writers support Macs!"