Re: Name only of app
Re: Name only of app
- Subject: Re: Name only of app
- From: Michelle Steiner <email@hidden>
- Date: Sat, 24 Jan 2009 14:54:31 -0700
On Jan 24, 2009, at 1:55 PM, David Marshall wrote:
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
Because not all applications have the extension as part of the name.
None of the Adobe products in my Applications folder have it, for
instance.
-- Michelle
--
Some people run to live.
I live to run.
_______________________________________________
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