• 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: can't make document
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: can't make document


  • Subject: Re: can't make document
  • From: Steven Majewski <email@hidden>
  • Date: Mon, 23 Feb 2004 16:59:40 -0500

On Feb 23, 2004, at 3:31 PM, Wesley Smith wrote:

Hi,

I'm sure that there is someting basic that I'm not getting right, but I can't
seem to get the read function or the open for access of the standard additions
dictionary to work for me. Previously, I've set a variable as a file
reference, and I've verified that everything is in order, but when I do say
"open for access (file reference)", I get the message "can't make document
file FILENAME of folder FOLDER of disk DISK".

I don't know what this message means since the file exists already and I'm not
trying to make it. Is the script trying to make a file? All I want to do is
open a text file and scan a few lines, and return a few values.

any suggestions?


If "file reference" is a placholder for your variable, you might try something like:

'open for access file theFileName

i.e. stick the literal 'file' in front of the variable.

( This is a well known misfeature of Applescript which probably eats up a dozen
man hours per newbie scripter. Why they don't just fix it, I don't know! )

-- Steve Majewski
_______________________________________________
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.

References: 
 >can't make document (From: "Wesley Smith" <email@hidden>)

  • Prev by Date: Re: print
  • Next by Date: Re: print
  • Previous by thread: Re: can't make document
  • Next by thread: Re: can't make document
  • Index(es):
    • Date
    • Thread