• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: open for access file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: open for access file


  • Subject: Re: open for access file
  • From: Michelle Steiner <email@hidden>
  • Date: Thu, 16 Jul 2009 08:04:30 -0700

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>)

  • Prev by Date: Re: open for access file
  • Next by Date: Re: open for access file
  • Previous by thread: Re: open for access file
  • Next by thread: Re: open for access file
  • Index(es):
    • Date
    • Thread