Re: Save as application - run only
Re: Save as application - run only
- Subject: Re: Save as application - run only
- From: "Stockly, Ed" <email@hidden>
- Date: Mon, 09 Nov 2015 23:38:43 +0000
- Thread-topic: Save as application - run only
I know this is probably not super-secure, but the way I get around this is
I declare the variables in the script application, but don't define them
until the first time the applet is run.
Doing it this way, you can't see the values if you open the script in
BBedit, etc.
------------
property userId : ""
property userPassword : ""
if userId is "" then
set userId to text returned of (display dialog "Enter User ID" default
answer "")
set userPassword to text returned of (display dialog "Enter password"
default answer "" with hidden answer)
end if
>
>Now open the app's main.scpt file in something like BBEdit as UTF16.
Also, in my setup (Script Debugger on OS X 10.10.4) if I export as
run-only, I don't see any of the script text in quick look or in the
preview when viewing in columns. I can see the script text in both if it's
not saved as run-only.
I think there used to be a way to do a script that reads:
Tell application "MyAppletWithUserId"
Set hiddenId to userId
Set hiddenPassWord to userPassword
End
But I can't get that to work, thankfully, so I don't think it's trivial to
get an unencrytped value from a script.
>
_______________________________________________
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