can't make document
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.