checking for existence of a folder on CD
checking for existence of a folder on CD
- Subject: checking for existence of a folder on CD
- From: "Craig K." <email@hidden>
- Date: Tue, 14 Dec 2004 01:04:52 -0600
I have a script that is checking to see whether a folder exists and if
it does, then searching the folder for files matching a name. The
script works fine in OS X whether the folder is on the user's desktop
or a CD. The script also works in OS 9 if the folder is on the hard
drive but NOT if the folder is on a CD.
The following snippet displays "false" if I have a CD named "Install"
with a folder "Software" under "Mac OS 9" on the CD when run under Mac
OS 9:
tell application "Finder" to ¬
set folderList to every folder of desktop whose name contains
"Install"
if number of items of folderList > 0 then
set dFolder to item 1 of folderList
set appFolder to (dFolder as string) & "Mac OS 9:Software"
tell application "Finder" to ¬
set itExists to exists item (appFolder)
display dialog (itExists as string)
end if
How do I make this work for a CD on Mac OS 9?
If I have a folder called "Install" on the desktop with the same
structure, the snippet displays true in both OS 9 and OS X.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden