Re: Problems with *path* specifications under Mac OS X
Re: Problems with *path* specifications under Mac OS X
- Subject: Re: Problems with *path* specifications under Mac OS X
- From: Gerd Wilmer <email@hidden>
- Date: Mon, 21 Jul 2003 08:36:01 +1000
the problem is the pathname. Try this:
property MyDisk : "Gerd's OSX"
property MyFolder : "Amex"
tell application "Finder"
get exists of disk MyDisk
get exists of folder MyFolder of disk MyDisk
add these lines
set the source_folder to path to desktop folder
set the source_folder to source_folder as string
change this line
get exists of folder (source_folder & ":" & MyFolder)
end tell
It appears that OSX uses the term"desktop" as an acronym for your hard
drive!!
Gerd
On Thursday, Jul 17, 2003, at 04:19 Australia/Sydney, Joan Sanchez Sabi
wrote:
>
If I run the follwing Script:
>
>
property MyDisk : "Produccis"
>
property MyFolder : "Scripts"
>
>
tell application "Finder"
>
get exists of disk MyDisk
>
get exists of folder MyFolder of disk MyDisk
>
get exists of folder (MyDisk & ":" & MyFolder)
>
end tell
>
>
I get the following results:
>
>
tell application "Finder"
>
exists disk "Produccis"
>
--> true
>
exists folder "Scripts" of disk "Produccis"
>
--> true
>
exists folder "Produccis:Scripts"
>
--> false
>
end tell
>
>
Question: Why is the last result false? (when the second is not)
>
>
It does NOT happen if I run the same script under Mac OS 9.
>
>
Regards
>
_______________________________________________
>
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.