• 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: which app?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: which app?


  • Subject: Re: which app?
  • From: Christian Vinaa <email@hidden>
  • Date: Mon, 14 Mar 2005 23:08:14 +0100

At 21:26 +0100 14/03/2005, wayne melrose wrote:
Hi,

I want to write a scripting which identifies which application is the frontmost application. The script is going to be in the scripts menu, and when activate will do certain things depending on which application is being used..

To be more specific this is what I would like to do..

set myapp to get the name of current application -- which from the scripts menu returns "System Events"

	if myapp is "Indesign CS" then
		-- do something
	else
		--do something else
	end if



perhaps something in the lines of:

tell application (path to frontmost application as string)

--
Christian Vinaa

...... Meanwhile, aunt Martha, having taken a tramp in the woods,
is lying in a ditch at the edge of town .........................
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >which app? (From: wayne melrose <email@hidden>)

  • Prev by Date: Re: Time Stamp String
  • Next by Date: Re: Time Stamp String
  • Previous by thread: which app?
  • Next by thread: TextEdit suppresses a folder.
  • Index(es):
    • Date
    • Thread