Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: open for access file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: open for access file



On Jul 16, 2009, at 5:44 AM, James Bensley quoted Mike:

the Author's code was as follows . . .
set MyFile to "Macintosh HD:Users:Jerry:Documents:GroceryList.txt"
I made the same setting but replaced 'Jerry' with my home folder and
used a differently named text file.


I never received that message from Mike; the following is directed to him:

Have you changed the name of your hard disk, or is it still named "Macintosh HD"?

a more generic way of doing this is
set myfile to ((path to documents folder) as text) & "filename"

This will work regardless of the name of the disk or the user's name; just change the name of the file to whatever file that's appropriate.

-- Michelle

--
Windows was always a mystery to me; the biggest mystery being "Why does anyone want to use this?"


_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
References: 
 >Re: open for access file (From: James Bensley <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.