Re: checking for existence of a folder on CD
Re: checking for existence of a folder on CD
- Subject: Re: checking for existence of a folder on CD
- From: jj <email@hidden>
- Date: Tue, 14 Dec 2004 11:39:27 +0100
This won't work in my machine, since I configured the Finder to Not show
CD/DVD/iPods in my desktop.
I would try something as:
###################
set msg to "TRUE"
try
"CDNAME:DIRNAME:SUBDIRNAME:" as alias
on error
set msg to "FALSE"
end try
display dialog msg
###################
jj
> 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.
--
http://www.macscripter.net/
http://www.osaxen.com/
_______________________________________________
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