Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Two dumb questions:



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:
http://lists.apple.com/mailman/options/applescript-users/email@hidden
Archives: http://lists.apple.com/mailman//archives/applescript-users

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.