• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Save as application - run only
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Save as application - run only
      • From: Shane Stanley <email@hidden>
References: 
 >Save as application - run only (From: Jay Louvion <email@hidden>)
 >Re: Save as application - run only (From: Axel Luttgens <email@hidden>)
 >Re: Save as application - run only (From: Shane Stanley <email@hidden>)
 >Re: Save as application - run only (From: "Stockly, Ed" <email@hidden>)
 >Re: Save as application - run only (From: Shane Stanley <email@hidden>)
 >Re: Save as application - run only (From: Deivy Petrescu <email@hidden>)
 >Re: Save as application - run only (From: "Stockly, Ed" <email@hidden>)
 >Re: Save as application - run only (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: Save as application - run only
  • Next by Date: Re: Save as application - run only
  • Previous by thread: Re: Save as application - run only
  • Next by thread: Re: Save as application - run only
  • Index(es):
    • Date
    • Thread