Re: Name only of app
Re: Name only of app
- Subject: Re: Name only of app
- From: Robert Poland <email@hidden>
- Date: Sat, 24 Jan 2009 14:26:55 -0700
I don't know about ugly but it is sure not easy to follow.
On Jan 24, 2009, at 1:55 PM, David Marshall wrote:
On Sat, 24 Jan 2009 10:54:40 -0700, Michelle Steiner wrote:
tell application "Finder" to set x to the displayed name of (path to
frontmost application)
if text -4 through end of x is ".app" then
set x to text 1 through -5 of x
end if
x
Instead of using "displayed name" and testing for the presence of
the ".app" extension, why not just use "name" and strip the extension?
tell application "Finder" to set x to characters 1 thru -5 of ¬
((name of (path to frontmost application)) as text) as text
x
- - - - -
Dave
Bob Poland - Fort Collins, CO
_______________________________________________
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