Re: Filemaker permissions
Re: Filemaker permissions
- Subject: Re: Filemaker permissions
- From: "Gary (Lists)" <email@hidden>
- Date: Wed, 12 Oct 2005 08:14:18 -0400
"Jay Louvion" wrote:
>
> Is there a way of giving an Applescript a temporary ³administrator priviliege²
> for a particular script that retrieves the values in certain cells ? The
> script is run directly within Filemaker 5.5.
Fields can have read access without write access, depending on the settings
(FM Privileges) assigned to the current password (the one used when the file
was opened or accessed if its a shared file).
Given that there are parallel terms at play, I may have you confused.
It may be better to discuss these terms more specifically, as in "FileMaker
privileges" and "FileMaker script".
I understand you to be asking:
Can you use AppleScript to provide some dynamic change in FileMaker's
privilege settings so that you can run a FileMaker script to perform some
action which you otherwise would not be able to perform manually?
The short answer: No. You can not, by script, change FM's privilege
settings.
The longer answer is: Your script-level access is the same as your
human-level access.
If you (or someone else) did not start the database file with sufficient FM
5 privileges to do some action manually then you can not do the action by
script.
Privileges can be set such that you have (or have not) access to a DB, a
Layout, a Field or Records.
Each of those classes has an AppleScript property called 'access' (which is,
itself, read-only...you can NOT change access). From this, you can
determine, by script, whether your script can proceed.
Here are some real-world values form a file where the current user has
editing only privileges and no write access to the field "Age". No new
records could be created by this user (or this user's scripts.)
access of database 1
-- no update
-- That's okay. It doesn't apply to field changes;
-- misleading naming.
access of field "F_Name"
-- read/write
-- FM scripts and AppleScripts and you can change the value.
access of field "Age"
-- read
-- Neither FM scripts nor AppleScripts nor you can change the value.
-- (Each could, however, delete the record, because of...)
access of current record
-- full
-- This means 'full view', but maybe not 'full control'.
-- If your access privileges are set for Editing Only, then
-- you can not delete the record (neither could you make a new one.)
-- But you can still read it, and any readable fields.
access of layout 1 of database 1
-- read/write
Scripted changes to FM's privileges would not be a very wise choice, as I'm
sure you can imagine. They would be pointless, in fact.
--
Gary
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden