Re: Two questions
Re: Two questions
- Subject: Re: Two questions
- From: "Marc K. Myers" <email@hidden>
- Date: Mon, 08 Jul 2002 16:06:32 -0400
- Organization: [very little]
>
Date: Sun, 7 Jul 2002 06:55:04 -0700
>
Subject: Two questions
>
From: Jeffrey Camiel <email@hidden>
>
To: <email@hidden>
>
>
1. Does anybody have a simple script that lists all the applications
>
within a volume to a text file? for 10.x and 9.x
>
2. When I use a script to open the Apple System Profiler in 10.x, it
>
always starts the classic environment and the 9.x Apple System Profiler,
>
how can I get the 10x version to run?
>
>
Much thanks in advance.
>
>
Jeff
Your search in OS 9.x is easy to accomplish with the free FindFile OSAX:
set hitList to FindFile in_folder (choose folder) filetype_is {"APPL"}
with subfolders
set {od, AppleScript's text item delimiters} to [optn-L]
{AppleScript's text item delimiters, {return}}
set hitList to (hitList as text)
set AppleScript's text item delimiters to od
set fileID to (open for access file (((path to desktop) as text) &
"hitList") with write permission)
try
set eof fileID to 0
write hitList to fileID starting at eof
close access fileID
on error m number n
try
close access fileID
end try
error m number n
end try
NB: "[optn-L]" stands in for the AppleScript continuation character
Marc K. Myers <email@hidden>
http://AppleScriptsToGo.com
4020 W.220th St.
Fairview Park, OH 44126
(440) 331-1074
[7/8/02 4:05:58 PM]
_______________________________________________
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.