• 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
Re: Simple newbie question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Simple newbie question


  • Subject: Re: Simple newbie question
  • From: Michelle Steiner <email@hidden>
  • Date: Tue, 13 May 2008 06:29:32 -0700

On May 12, 2008, at 11:58 PM, ba95 wrote:

-- define app1 and app2

tell application "Finder"
	try
		if "App1" is not in (get every process) then
			open application app1
			open application App2
		else
			quit application app1
			quit application App2
		end if
	end try
end tell

--

Thanks a lot Michelle. Unfortunately the script does not work here.

Launching time: only "App1" is opened
Quiting time: nothing happens.

I just noticed an error in the script; there shouldn't be quotes around "app1" in the "if" line.


-- Michelle

--
I am Dyslexic of Borg. Fusistance is retile. Your ass will be laminated.

_______________________________________________
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
  • Follow-Ups:
    • Re: Simple newbie question
      • From: KOENIG Yvan <email@hidden>
References: 
 >Simple newbie question (From: ba95 <email@hidden>)

  • Prev by Date: Re: Wait Until Process Completion
  • Next by Date: Re: Wait Until Process Completion
  • Previous by thread: Simple newbie question
  • Next by thread: Re: Simple newbie question
  • Index(es):
    • Date
    • Thread