tomp Posted August 23, 2005 Posted August 23, 2005 I have 2 runtime solutions. One runs in the background and is started with a 'send event' from the other. All files in both solutions have the same user names, log in name, privileges, and privilege sets. The log in name is NOT a full access account. The run times were created in the same account. Everything runs as desired in this account. When run in another account, the background solution runs as expected when started by clicking the application icon in the Finder. However, when started from the 'send event' script step in the foreground solution, the following message(s) occur whenever a change to table data is attempted: 'Your access privileges do not allow you to add or modify records in the target table' (an import was attempted). 'This action cannot be performed because this file is not modifiable' (a set field was attempted). It appears that no actions on the data can be completed. Using a 'Get(accountname)' I have verified that the log in user is in fact the account that is active. The privilege set for this user has for 'records' - 'create, edit, and delete in all tables'. Any insight into why the privilege set is applied correctly in the creation account and inconsistently in another account even when the privilege set for the user should allow table modifications?? TIA
Vaughan Posted August 23, 2005 Posted August 23, 2005 Is the file locked (read only) at the OS level?
Reed Posted August 23, 2005 Posted August 23, 2005 Are you trying to modify the same file with two different run time applications at the same time?
tomp Posted August 23, 2005 Author Posted August 23, 2005 I do not believe the file is locked since it can be modified when launched from the finder in any account. The 'cant modify' messages occur only when launched by 'send event' from an account other than the one it was created in. The 'background' runtime does not access nor try to modify any data in any other open database. It imports data from closed files for use in processing.
Reed Posted August 23, 2005 Posted August 23, 2005 I do not believe the file is locked since it can be modified when launched from the finder in any account. The 'cant modify' messages occur only when launched by 'send event' from an account other than the one it was created in. Are you talking about OS X user accounts or FMP accounts? If it's OS X accounts, are you switching accounts using fast user switching? (two accounts logged in at once) This could possibly cause file locking problems. Have you tried creating accounts for the runtime that have full access and setting them as the default account? Does the problem still occur?
tomp Posted August 23, 2005 Author Posted August 23, 2005 The 'cant modify' problem was due to OSX file permissions. When installing the runtimes on the OSX account that created them, everything was ok. When installing the runtimes on another OSX account, the 'you can' for the background runtime data file was 'Read only'. That apparently wasn't an issue when the runtime was launched from the finder, but was when launched from 'send event'. When the 'you can' permissions were changed to Read & Write, the 'cant modify' messages disappeared..... BUT I've encountered yet another roadblock (this has been quite a journey). This may be more a question on 'import & export' but I'll post it here since that's where I am. The first thing the background runtime does is import parameters from the foreground runtime (using just-backed up copy files - not the active foreground files). The import option is to replace current data. When run on the OSX account that created the runtimes, the import yields the correct results. When run on another OSX account, the import seems to do nothing. Error capture around the import says there was no problem. The log-ins are both full access accounts. Is there something about 'import'ing from another runtime in an OSX account different from the one the runtime was created in that I need to know about??
Recommended Posts
This topic is 7382 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now