Can a script be password protected

Can a script be password protected

am 17.01.2008 08:27:09 von Rick Altman

I would like to know if there is a script function that asks for a password
and will only proceed once it is correctly entered. If there isn't a literal
command for that, can it be faked with an input field and an if/then
function of some sort? Thanks...






--
Rick A.
Pleasanton CA

Re: Can a script be password protected

am 17.01.2008 13:42:02 von ursus.kirk

look into the re-login step

Keep well, Ursus

"Rick Altman" schreef in bericht
news:h8Gdnf8_EtfQnhLanZ2dnUVZ_hCdnZ2d@comcast.com...
>I would like to know if there is a script function that asks for a password
>and will only proceed once it is correctly entered. If there isn't a
>literal command for that, can it be faked with an input field and an
>if/then function of some sort? Thanks...
>
>
>
>
>
>
> --
> Rick A.
> Pleasanton CA
>

Re: Can a script be password protected

am 18.01.2008 22:43:09 von Helpful Harry

In article <478f4d19$0$52190$dbd43001@news.wanadoo.nl>, "Ursus"
wrote:
> "Rick Altman" schreef in bericht
> news:h8Gdnf8_EtfQnhLanZ2dnUVZ_hCdnZ2d@comcast.com...
> >
> >I would like to know if there is a script function that asks for a password
> >and will only proceed once it is correctly entered. If there isn't a
> >literal command for that, can it be faked with an input field and an
> >if/then function of some sort? Thanks...
>
> look into the re-login step

I don't know anything about this step which may answer the question
easily.

A password system can be "faked" (and I have done it before), but it is
probably easier to use FileMaker's own built-in passwords / privileges
system so that some users can not use the function. Even with a faked
password system you will have to use FileMaker's own passwords /
privileges to stop people simply opening the ScriptMaker and changing
the script or password anyway.

*BUT*
Always remember to set-up a user/password that still give you FULL
access to the file BEFORE creating any other users, otherwise you could
easily lock yourself out of the file entirely.

Once you have set-up the privileges, you can stop particular users from
performing a script by checking which Group the user is in, so the
start of the script might be something like:

If [Get(CurrentGroups) = "AllowedUsers"]
{perform function}
Else
Beep
Message ["That function is not available - ask the
support person for assitance."]
End If

You can set the Document Preferences to always try a particular
password when opening the file, so that most users don't even know
there is one. Holding down the Shift key (Windows) or Option / Alt key
(Mac) when opening the file allows you to manually enter a different
password.


Helpful Harry
Hopefully helping harassed humans happily handle handiwork hardships ;o)

Re: Can a script be password protected

am 18.01.2008 23:05:50 von pmanet

Helpful Harry wrote:

> Once you have set-up the privileges, you can stop particular users from
> performing a script by checking which Group the user is in, so the
> start of the script might be something like:

is it a way (script, button..) to switch user without login out ?

ie : a user is logged, and you come as admin and have to access specific
things...
--
www.D-L-S.org

Re: Can a script be password protected

am 19.01.2008 09:03:28 von ursus.kirk

No not realy, it is a way to fake protection with a script. It is not a way
to change access to layouts or fields. If well thought out, it would work.

Keep well, Ursus


"manet" schreef in bericht
news:20080118230550475168@[10.0.1.1]...
> Helpful Harry wrote:
>
>> Once you have set-up the privileges, you can stop particular users from
>> performing a script by checking which Group the user is in, so the
>> start of the script might be something like:
>
> is it a way (script, button..) to switch user without login out ?
>
> ie : a user is logged, and you come as admin and have to access specific
> things...
> --
> www.D-L-S.org