Re: Why this doesn't work?
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.