Re: What happened to "file"?
Re: What happened to "file"?
- Subject: Re: What happened to "file"?
- From: Paul Skinner <email@hidden>
- Date: Tue, 7 May 2002 16:10:09 -0400
I don't know if you noticed, but way down at the bottom of my earlier
post I got a reference to the file to 'work'.
set fileRef to a reference to file "Dalai:Users:paulskin:Desktop:Jumbo
dots.psd"
-->file "Dalai:Users:paulskin:Desktop:Jumbo dots.psd" of
+script;<--Chevrons around the word 'script'.
Since when did scripts own files? This IS a real file ref as far as
I can tell from syntactical coloring, but the finder can't open it.
tell application "Finder"
open fileRef
end tell
-->file "Dalai:Users:paulskin:Desktop:Jumbo dots.psd" of +script;
doesn't understand the open message.
And it seems that the posixFilePosixPath thing doesn't do anything
but look good either.
set fileRef to POSIX file (POSIX path of
"Dalai:Users:paulskin:Desktop:Jumbo dots.psd")
-->file "Dalai:Users:paulskin:Desktop:Jumbo dots.psd"
tell application "Finder"
open fileRef
end tell
-->Finder got an error: Handler can't handle objects of this class.
WHACK!
On Tuesday, May 7, 2002, at 02:42 PM, Paul Berkowitz wrote:
On 5/7/02 11:32 AM, "Paul Berkowitz" <email@hidden> wrote:
Hey! I just found a way! It's sort of nuts:
POSIX file "/Users/berkowit/Documents/Pascal/Contacts Export EvX.txt"
compiles to
file "OS X HD:Users:berkowit:Documents:Pascal:Contacts Export EvX.txt"
but this time it has the same Gargantuan Geneva 12 font that 'alias'
forms
compile to, not the usual string font. NOW, when you run it, it
doesn't error!
Who would have thought that the whole thing depended on what font you
used?
What exactly is AppleScript up to here?
So, in a roundabout, even nuttier way, if you've got the colon
AppleScript
path to begin with, you can do:
POSIX file (POSIX path of "OS X
HD:Users:berkowit:Documents:Pascal:Contacts Export EvX.txt")
Run it (with a real file path on your machine), and the result is:
file "OS X HD:Users:berkowit:Documents:Pascal:Contacts Export
EvX.txt"
in regular string (or result) font! But you can't then recompile that
result.
--
Paul Berkowitz
_______________________________________________
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.
--
Paul Skinner
_______________________________________________
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.