Prevent application launching?
Prevent application launching?
- Subject: Prevent application launching?
- From: Brad Knabel <email@hidden>
- Date: Tue, 26 Mar 2002 14:29:49 -0800
I would like to send an AppleScript periodically from an application. I am
doing this from within carbon code. I would like to run this script in the
equivalent of a "quiet" mode where it simply fails if the application isn't
running. Is there a way to either:
1. Prevent an Applescript from launching an application if it's not running?
or
2. Determine the frontmost application from within an AppleScript?
The core of the problem is that I'm watching when certain applications are
frontmost and periodically running a script like:
tell application "BBEdit"
get name of front window
end tell
The problem I've encountered is that if the user has quit the application
between the time I've detected that the application is frontmost and when
the script is run, the application restarts automatically.
Thanks for any input you might have.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.