The apple script documentation says there's nothing you can do if you
make it run only, the code is lost. Personally, I don't believe
this, since *something* has to run the thing, since it's not a stand-
alone executable. This means something has to decode what's in that
file in order to execute it's commands. That means, it's available
somewhere when it's running, which tells me it *is* possible to
retrieve it's contents, albeit perhaps not in the same form you put
it in there. However, since I haven't a clue how to go about
decompiling one of those things, I have no solutions. And if you've
gotten spark to execute a run only script that was saved as an scpt
file, then you've gotten farther than I have. I've managed to do
absolutely nothing with such script files. God knows it's not for
lack of trying though *grin*
I just resaved another script as run only, and if it's in scpt form,
the script editor won't read it (go figure, how can you run it then)
and as an app, it still comes up with that quit/run dialog to begin
with. I would really like to know how to eliminate that.
Hmm, now that I think about it, perhaps I could use gdb. Then patch
the executable to bypass that.
Hmm, there's an idea. I'll keep everyone posted as to my status on
this.
On Jan 7, 2006, at 4:14 PM, Jane Jordan wrote:
I just did that as a matter of paranoia. :) I knew that whatever I
tried to put together might nit work quite the way I would want and
that I would need to modify the script, so I have it save as an app
*and* a script.
Is there a way to get into the properties of that script with
command-i and see if you can fix it from there from being run-only?
Jane
On Jan 7, 2006, at 2:23 PM, Cheryl Homiak wrote:
Well, I just discovered that if you put the file in spark and
automate it, it runs though of course you still can't edit it. But
this makes me think there must be a way to run a file without
clicking on it or using command-o, since spark can do it. also,
until this is figured out, it appears that if you want to have a
file run only and automate it you might also want to keep a copy
of the uncompiled code in case you want to make modifications.
--
Cheryl
"Where your treasure is,
there will your heart be also".