Re: Save as application - run only
Re: Save as application - run only
- Subject: Re: Save as application - run only
- From: Deivy Petrescu <email@hidden>
- Date: Mon, 09 Nov 2015 22:52:18 -0500
> On Nov 9, 2015, at 21:34 , Shane Stanley <email@hidden> wrote:
>
> On 10 Nov 2015, at 1:23 PM, Stockly, Ed <email@hidden> wrote:
>>
>> I can't seem to
>> figure out how to get the value of a property out of a script (run-only or
>> not actually) after it's changed at runtime. I've tried all the
>> suggestions so far, including Shane's load script method.
>
> If it's stored as a property, load script will let you get at it. And even if it's run-only, a text editor will give you the property names (although there are other ways of doing that, too).
>
> An AS script is just another script object. If it has properties, their values can be read.
>
> --
> Shane Stanley <email@hidden>
> <www.macosxautomation.com/applescript/apps/>
>
Actually, I’ve learned a third thing.
I was not aware that you would be able to get a list, a record, or a text will be retrieved by a load script.
I knew of text, but did not expect to be able to retrieve lists or records.
Here’s a simple script that can prevent that, but it is not the best solution.
property bigSecret : ""
set my bigSecret to text returned of (display dialog "Tell me a secret:" default answer my bigSecret)
set bigSecret to encryptit(bigSecret)
on encryptit(x)
set l to {}
repeat with k in x
set end of l to (id of k) ^ 2
end repeat
return l
end encryptit
Deivy Petrescu
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:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden