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

can't make document


  • Subject: can't make document
  • From: "Wesley Smith" <email@hidden>
  • Date: Mon, 23 Feb 2004 20:21:07 -0500

Here's the code form the script that I'm using to read the text file:
-----------------------------
tell application "Finder"
set Media_Hole to disk "Media Black Hole"
set Pavilion to folder "pavilion" of Media_Hole
exists file "listing.txt" of folder "Pavilion" of disk "Media Black Hole"
set listing to file "listing.txt" of folder "Pavilion" of disk "Media Black Hole"
get properties of listing
open for access file "listing.txt" of folder "Pavilion" of disk "Media Black Hole"
get eof of result
end tell
------------------------------
If I replace the third to last line with:

open for access listing or
open for access file listing

I get the error cannot make file Media Black Hole:Pavilion:listing.txt.

The way it is up above gives and eof result of 0.0 which means an empty file. This is definitely not the case.

Does anyone know what I'm doing wrong?

thanks,
wes

_________________________________________________________________
Click, drag and drop. My MSN is the simple way to design your homepage. http://click.atdmt.com/AVE/go/onm00200364ave/direct/01/
_______________________________________________
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: can't make document
      • From: Deivy Petrescu <email@hidden>
    • Re: can't make document
      • From: Walter Ian Kaye <email@hidden>
    • Re: can't make document
      • From: Michelle Steiner <email@hidden>
  • Prev by Date: on synonyms and homonyms (clarification)
  • 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