Re: Get a list of applications
Re: Get a list of applications
- Subject: Re: Get a list of applications
- From: Tom Jones <email@hidden>
- Date: Tue, 8 Jul 2003 22:18:54 -0700
Hi All,
I just wanted to say thanks for all the help on this. I do have one
other question, I was retrieving both name a version. Is there some way
to get the short version which shows in the finder, not the version
which shows in the GetInfo?
Here is the syntax I used --
set AppLoc to "/Applications" -- make it a Unix path
set AppLoc to (POSIX file AppLoc) as Unicode text
tell application "Finder"
get {name, version} of every application file of folder AppLoc
end tell
On Tuesday, July 8, 2003, at 08:05 PM, Christopher Stone wrote:
>
At 07/09/2003 08:27 +1000, Tim Bates wrought:
>
>
> Seems to optimize itself. i ran it three times (DP 1.2GHz) and got
>
> {96, 1084.0}
>
> {96, 520.0}
>
> {96, 179.0}
>
> {96, 177.0}
>
>
>
> On Wednesday, July 9, 2003, at 8:03 AM, John Delacour wrote:
>
>
>
>> set x to GetMilliSec
>
>> tell app "Finder" to name of application files in entire contents of
>
>> folder "Applications" of startup disk
>
>> {count result, (GetMilliSec) - x}
>
______________________________________________________________________
>
>
Greetings,
>
>
On the first run I heard the disk get accessed, and it took about 3
>
seconds to find 394 apps on my system (Dual 867).
>
>
On subsequent runs the time averaged 401.3 ms.
>
>
My guess is that the subsequent runs pull information out of cache.
>
>
>
Best Regards,
>
>
Christopher Stone
>
_______________________________________________
>
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.
_______________________________________________
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.