Madness & frustration... What is a file? What is a Path?
Madness & frustration... What is a file? What is a Path?
- Subject: Madness & frustration... What is a file? What is a Path?
- From: Cliff Pruitt <email@hidden>
- Date: Wed, 12 May 2004 10:14:37 -0400
Sigh... OK, can any of you brilliant AS veterans possibly explain the
difference between files, references to files, aliases & paths? Also,
how do you work with POSIX (/) and Mac styled (:) path delimiters?
Which is the "correct" delimiter? They seem to both be used but under
different circumstances. What is the easiest & most straightforward
way to locate a file & work with it? How do you take a path and append
text & then use it as a path to get to a file. For example, this never
seems to work for me:
Tell Application "Whatever"
set homePath to path to home folder
set theFile to homePath & ":Documents:Folder 1:Folder 2:file.txt"
open theFile
End Tell
It seems like it should be straightforward but for some reason it never
works the way I think it will...
Anyway, I'm just trying to get a good handle on this so any insight you
guys can provide would be great. I'm sure I can return the favor
someday.
- Cliff
_______________________________________________
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.