Re: Script to launch or toggle the visibility of an application?
Re: Script to launch or toggle the visibility of an application?
- Subject: Re: Script to launch or toggle the visibility of an application?
- From: Jim Krenz <email@hidden>
- Date: Tue, 22 Apr 2008 22:42:49 -0700
Thanks Luther!
So, after using the script you modified, I came to the conclusion that what I was actually wanting to do is:
- Launch the application (if it is not already running)
- Hide the application if it is the active application
- Activate the application (if it is active and hidden)
Your script does the above except that it doesn't activate the application when it is made visible. Any suggestions on how to do so?
Jim
On Apr 21, 2008, at 9:48 AM, Luther Fuller wrote: I modified this from a recent script ...
tell application "System Events" if not (exists process "ApplicationName") then tell application "ApplicationName" to activate else not (visible of process "ApplicationName") set visible of process "ApplicationName" to the result end if end tell
On Apr 21, 2008, at 10:28 AM, Jim Krenz wrote:
Is there a single script that would:
Launch an application (if it is not running)
-or-
Toggle the application's visibility (if it is already running)?
Thanks in advance for any ideas, pointers, etc.
______________________________________________
|
_______________________________________________
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