Re: Why does a compiled script's file size shrink when you log out?
Re: Why does a compiled script's file size shrink when you log out?
- Subject: Re: Why does a compiled script's file size shrink when you log out?
- From: Emmanuel <email@hidden>
- Date: Fri, 11 Oct 2002 10:04:18 +0200
At 8:22 PM -0700 10/10/02, Michael Terry wrote:
On 10/10/02 7:42 AM, "Emmanuel" <email@hidden> wrote:
This must have come up before, but I couldn't find any references. The
Finder reports the script size as 104k. Log out, log in, and the
size is now
36k. Recompile the script--don't even run it--and now its 104k again. What
explains that?
<duck>It won't explain the whole thing, but did you try to compile
the script with different editors?</duck>
As it happens, whatever you're talking about does seem to explain the whole
difference.
(I wasn't talking about anything, just ducking)
I copied the text into Smile and compiled, and it's back to 36k.
Recompiled: 36k. Logged out and in, recompiled: 36k. Opened in SE, compiled:
up to 104k. After that resaving it in Smile kept it at 104k, so Smile
doesn't reverse the "damage" to the file. The script doesn't need this extra
girth to run or save the readable version, 'cause if I don't recompile it
after logging in, but run it, it stays the same size. What's this about?
Do you save the script in the old fashion ("osas" type) or in the data fork?
(To save a script in the data fork with Smile, supply a ".scpt"
suffix to the name)
Could it be that SE saves both in the file?
(To open the data fork from Smile, use "cmd + shift + O")
(To open the resource fork from Smile, run "load resource 128 type
"scpt" from alias blabla")
Emmanuel
_______________________________________________
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.