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: John Delacour <email@hidden>
- Date: Mon, 21 Jul 2003 00:44:18 +0100
- Mac-eudora-version: 6.0a27
At 8:36 am +1000 21/7/03, Gerd Wilmer wrote:
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!!
What is all this about!! And what's all this 'get exists' and
'exists of' garbage I keep seeing?
"" & path to desktop
--> "dx:Users:jd:Desktop:"
It's obvious that if you add a colon between that and the name of the
folder on the desktop, you're going to get not exists of it, to use
the current gobbledygook.
tell app "Finder"
set _desk to "" & (path to desktop folder)
set _folder to "junk"
try
make folder at item _desk with properties {name:_folder}
end
the folder (_desk & _folder) exists
end
--> true
JD
.
_______________________________________________
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.