Re: To Matt: Problem Sending AppleScripts as Text: The Resource Fork
Re: To Matt: Problem Sending AppleScripts as Text: The Resource Fork
- Subject: Re: To Matt: Problem Sending AppleScripts as Text: The Resource Fork
- From: Matt Gregory <email@hidden>
- Date: Fri, 7 Oct 2005 10:21:27 -0400
Phew! I had no idea what the answer to this question was ...
matt.
On 10/7/05, Matt Neuburg <email@hidden> wrote:
On Thu, 6 Oct 2005 11:35:50 -0400, Jonathan Levi MD <email@hidden>
said:
>Hi Matt,
>
>May I humbly point out a problem with sending applescripts over the
>Internet as text, as you've suggested doing previously? (You've
>undoubtedly noticed and may have commented on the following already,
>but...) The problem is that Script Editor deletes the resource fork,
>including the Description section, which I think most would consider
>a significant loss.
>
>A simple alternative would be to stuff the script
A script can easily be transmitted over the Internet. That's not the
problem. The problem is that a compiled script sometimes can't be opened
(decompiled) on a remote machine, whereas text always can be. Stuffing
merely compounds the problem. (And stuffing as .sitx *really* compounds the
problem, since many users don't have a way to decode that format and never
will.)
I will give a simple example that just occurred yesterday. Someone wanted me
to look at a problem with a script he'd written. He copied the script and
pasted the text of it into his email. Perfect. But then later he wanted to
do the same thing, and he sent me a compiled script. I didn't have any of
the target applications, so I couldn't open it. (Well, I could have if I
really wanted to. But I didn't really want to, at that point.)
I grant that the fact that in some formats the Description is in the
resource fork is annoying, but that simply further supports my point, which
is that a compiled script file is often kind of a bad thing. Anyhow, loss of
the Description is nowhere near as significant as loss of the script's
content, which is, you must admit, usually the chief information the sender
wishes to convey.
(It is, indeed, for this very reason that the script bundle format was
created - it doesn't involve *any* resource forks. But you *still* might not
be able to read the original script.) m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide
<http://www.amazon.com/exec/obidos/ASIN/0596005571/somethingsbymatt>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
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:
This email sent to email@hidden