• 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: "tell application" without starting application?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "tell application" without starting application?


  • Subject: Re: "tell application" without starting application?
  • From: Duncan Cowan <email@hidden>
  • Date: Thu, 28 Nov 2002 11:44:12 +1100

I think this should work

if name of every process contains "iTunes" then
tell app "itunes"
-- dothis()
else
display dialog "itunes is not running"
end

From: Michael Stillwell <email@hidden>
Date: Thu, 28 Nov 2002 11:30:41 +1100
To: email@hidden
Subject: "tell application" without starting application?


Is there some way to do something with an application if it is running,
and do nothing if it is not? Basically, I want to do something like
this

if is_running("iTunes") then
tell application "iTunes"
-- do something here
end
else
display dialog "iTunes not running"
end

but not have iTunes start if it wasn't running in the first place!
(is_running() is always true in the code above.) Unfortunately, if
seems that if "tell application" appears in a script at all, it seems
to start the named program running.



Thanks,
Michael

* * *
http://beebo.org
_______________________________________________
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.
_______________________________________________
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.

  • Follow-Ups:
    • Re: "tell application" without starting application?
      • From: Paul Berkowitz <email@hidden>
References: 
 >"tell application" without starting application? (From: Michael Stillwell <email@hidden>)

  • Prev by Date: "tell application" without starting application?
  • Next by Date: Re: "tell application" without starting application?
  • Previous by thread: "tell application" without starting application?
  • Next by thread: Re: "tell application" without starting application?
  • Index(es):
    • Date
    • Thread