Two dumb questions:
Two dumb questions:
- Subject: Two dumb questions:
- From: "Mark J. Reed" <email@hidden>
- Date: Fri, 17 Nov 2006 11:11:04 -0500
OK, I know I've seen this before, but I don't recall the fix. This is
all on Panther.
1. My script is doing this:
set foo to (POSIX file "/bar/baz/zoo")
which, of course, compiles to
set foo to (file "Macintosh HD:bar:baz:zoo")
and the script runs fine as long as I don't make any changes. But if
I need to recompile it, that compilation fails on the above line with
a "NSCannotCreateScriptCommandError". What's going on?
I know I can do a
set path to "/bar/baz/zoo"
set foo to (POSIX file path)
to prevent the recompilation, but I'm wondering what is wrong with the
HFS-syntax version of the line.
2. Script Editor seems to be caching file contents. I'm trying to
read a file that at one time had only 25 bytes in it, and I only get
those 25 bytes. It currently has 95 bytes in it. Neither renaming it
nor copying the data back into it (from outside Script Editor) had any
effect; I had to close and restart Script Editor. Any way to get
around that?
--
Mark J. Reed <email@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/mailman//archives/applescript-users
This email sent to email@hidden