FROM : daniel
DATE : Wed Nov 17 23:22:14 2004
> So why do they stick when I run the script from the Script Menu? Does
> the Script Menu store the script after execution?
Yes. Try putting one of your scripts on a read-only disk image and run
it from the script menu, then.
>> In answer to your question, it looks like the "store script" command
>> might accomplish what you're looking for.
> OK, that is when I want to save the changes. But what If I do not want
> this?
Then don't store the file. You either want the changes saved or do
not, so you can decide whether or not to store the changes.
> And what if I want to store the changes from the script itself?
> The store script command wants a file, otherwise it will ask for it.
> The natural way is to store to itself , but I have found no way to
> find the path of the script itself ("path to me" gives the path to the
> calling application, like Script Editor)
I don't think there's any reliable way to do this. Another argument
for taking data storage out of the script itself.
Daniel
DATE : Wed Nov 17 23:22:14 2004
> So why do they stick when I run the script from the Script Menu? Does
> the Script Menu store the script after execution?
Yes. Try putting one of your scripts on a read-only disk image and run
it from the script menu, then.
>> In answer to your question, it looks like the "store script" command
>> might accomplish what you're looking for.
> OK, that is when I want to save the changes. But what If I do not want
> this?
Then don't store the file. You either want the changes saved or do
not, so you can decide whether or not to store the changes.
> And what if I want to store the changes from the script itself?
> The store script command wants a file, otherwise it will ask for it.
> The natural way is to store to itself , but I have found no way to
> find the path of the script itself ("path to me" gives the path to the
> calling application, like Script Editor)
I don't think there's any reliable way to do this. Another argument
for taking data storage out of the script itself.
Daniel
| Related mails | Author | Date |
|---|---|---|
| Christiaan Hofman | Nov 16, 15:44 | |
| Nathan Day | Nov 17, 01:03 | |
| daniel | Nov 17, 09:22 | |
| Christiaan Hofman | Nov 17, 11:50 | |
| daniel | Nov 17, 23:22 |






Cocoa mail archive

