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

What happened to "file"?


  • Subject: What happened to "file"?
  • From: Paul Berkowitz <email@hidden>
  • Date: Sat, 04 May 2002 16:44:34 -0700

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"

Then:

set f to alias "OS X HD:Users:yourname:Desktop:test"
--> alias "OS X HD:Users:yourname:Desktop:test"

it compiles with that funny gigantic font, and is OK.

I can't make 'file' work, no matter whether I set the path as international
text, Unicode text, text, or string. Nor does it work setting the file path
to a variable.

I've read the release notes for As 1.8.2b3 and for 1.8.1. The only mentions
of file references say that certain things have been fixed. There's
something about their not working in AS 1.6 when paths containd accented
characters, nothing else. I've tried it with these file paths:

set fff to file "OS X HD:Users:berkowit:Documents:Pascal:contacts.CSV"
set fff to file "OS X HD:Users:berkowit:Documents:Plea.rtf"
set fff to file "Data HD:Documents:AppleScript Scripts/Docs OSX:Scripts
X:Beep in Background"


Is 'file' no longer a valid AppleScript language term, except in 'open for
access'? Or what is the bug - what's going on?

--
Paul Berkowitz
_______________________________________________
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 Skinner <email@hidden>
    • Re: What happened to "file"?
      • From: David Hood <email@hidden>
  • Prev by Date: Re: tell darwin
  • Next by Date: Re: tell darwin
  • Previous by thread: Re: tell darwin
  • Next by thread: Re: What happened to "file"?
  • Index(es):
    • Date
    • Thread