FileMaker PART #2 - file asking for passwords
FileMaker PART #2 - file asking for passwords
- Subject: FileMaker PART #2 - file asking for passwords
- From: DealTek <email@hidden>
- Date: Thu, 30 Sep 2010 09:07:46 -0700
NEWBIE! PART #2
Here is a second issue that I am having getting FileMaker files open with AppleScript and QuicKeys...
The second problem is that I have a master file called MENU.fp7 - that will open several related files automatically. If I do not include the passwords with:
open "DRIVE1:Users:USERNAME:Documents:FM:MENU.fp7" ---- no authentication ----
- then when it opens it asked for the password and everything works correctly–opening the related files in the background.
However, if I add :
open "DRIVE1:Users:USERNAME:Documents:FM:MENU.fp7" with passwords "PASS" for Accounts "MAIN"
Then the file will open automatically–however it will now ask me for the same password and account for the related files. (If you open the master file correctly–FileMaker is supposed to automatically open the other related files assuming they have the same account and password).
I believe this has something to do with timing issues–and if I add a short delay after the initial open command that it seems to work better.
Q: is there a better way to avoid these timing issues and get FileMaker to open everything properly?
-----------
tell application "FileMaker Pro Advanced"
activate
if (exists window "MENU") = false then
open "DRIVE1:Users:USERNAME:Documents:FM:MENU.fp7" with passwords "PASS" for Accounts "MAIN"
end if
delay 1 - this seems to help but is there a better way?
set visible of window "MENU" to false
set visible of window "MENU" to true
end tell
-----------
ALSO: this was some old trick - set to false then back to true - do I still need this?
set visible of window "MENU" to false
set visible of window "MENU" to true
--
Thanks,
Dave - DealTek
email@hidden
[db-10]
_______________________________________________
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