• 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: Why this doesn't work?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why this doesn't work?


  • Subject: Re: Why this doesn't work?
  • From: John Delacour <email@hidden>
  • Date: Wed, 13 Aug 2003 08:58:56 +0100

At 10:39 pm -0300 12/8/03, Marcus Rodrigues wrote:
I thought it was very easy, but it does not compile:


get (name of application whose the frontmost is true)



path to frontmost application

or

set AppleScript's text item delimiters to ":"
set n to -1
set f to (path to frontmost application) as Unicode text
if f ends with ":" then set n to -2
set _name to text item n of f
set AppleScript's text item delimiters to ""
_name

or

tell application "Finder"
name of (path to frontmost application)
end tell









.
_______________________________________________
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.

References: 
 >Why this doesn't work? (From: Marcus Rodrigues <email@hidden>)

  • Prev by Date: Re: Fwd: scripts revert to <<class foobar>>
  • Next by Date: Re: Folder action for volume mounted?
  • Previous by thread: Bug in QXPScriptingAdditions.osax?
  • Next by thread: Artist in iTunes
  • Index(es):
    • Date
    • Thread