• 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: What happened to "file"?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What happened to "file"?


  • Subject: Re: What happened to "file"?
  • From: David Hood <email@hidden>
  • Date: Tue, 7 May 2002 21:00:41 +1200

On Sunday, May 5, 2002, at 11:44 AM, Paul Berkowitz wrote:

OS 10.1.4, AS 1.8.2b3
I thought that file references were supposed to behave just as they always
did, even though they're actually set up differently "under the hood" in OS
10.1.x?
Get a valid path to a real file on your computer, e.g.
"OS X HD:Users:yourname:Desktop:test"
Now try
set f to file "OS X HD:Users:yourname:Desktop:test"
--> ERROR: Can't get file "OS X HD:Users:yourname:Desktop:test"

This worked fine for me (for a file 2.txt on my desktop):
tell application "Finder"
set f to file "OSX:Users:david:Desktop:2.txt"
return f
end tell

which returned:
document file "2.txt" of folder "Desktop" of folder "david" of folder "Users" of startup disk of application "Finder"

also running
OS 10.1.4, AS 1.8.2b3

so I'm not sure what's going on in your case.

Regards,
David Hood
_______________________________________________
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.

  • Follow-Ups:
    • Re: What happened to "file"?
      • From: Paul Berkowitz <email@hidden>
References: 
 >What happened to "file"? (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Translate a code of 2 characters to a text
  • Next by Date: Re: Setting Default Browser in OS X
  • Previous by thread: What happened to "file"?
  • Next by thread: Re: What happened to "file"?
  • Index(es):
    • Date
    • Thread