Reading a file in the user's home Documents
Reading a file in the user's home Documents
- Subject: Reading a file in the user's home Documents
- From: Dave Stewart <email@hidden>
- Date: Thu, 11 Sep 2003 17:25:22 -0700
After a half an hour trying to figure out the syntax of:
set theUserCodePath to (((path to current user folder) as text) &
"Documents:updateScriptKey" as POSIX file)
so I can
set theFileToRead to open for access theUserCodePath
I give up. I've tried the ASLG (slower than molasses today), the
archives for this list (also slow and having lots of stuff that's
similar but obviously not close enough ... otherwise I'd have solved
this already!!!!) and a few tutorials I've found in books. Every
attempt at the first line gives me some form of error or the other
(what's listed above yields "Bad name for file. file
:.:<path_that_I_want>")
So, rather than lose my mind or more hair off the top of my head, I
figured I'd ask the experts and hope for an answer tomorrow morning.
(The one's who reply first will recognize what I'm trying to do, but
just in case it isn't crystal clear I'm trying to read in a file
located in the user's /Documents directory. That's all. Only
AppleScript can make this simple an operation so convoluted that I have
to ask the list how to do it. Any other language and I would have
figured it out 29 minutes ago.)
Dave Stewart
Aqua-flo Supply (Goleta)
email@hidden
No trees were harmed during the production of this email,
but a large number of electrons were terribly inconvenienced....
_______________________________________________
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.