Re: Activate doesn't - Mountain Bug?
Re: Activate doesn't - Mountain Bug?
- Subject: Re: Activate doesn't - Mountain Bug?
- From: Jay louvion <email@hidden>
- Date: Thu, 02 Aug 2012 22:45:44 +0200
I've noticed that the latst few updates of Filemaker often don't wait for app responses (in my case Photoshop), so maybe an update of FM might be the culprit, but that's just my ten cents...
J
Sent from my iRoningboard
On 2 août 2012, at 22:13, Lists <email@hidden> wrote:
> This is the first part of an AppleScript that has worked with only minor changes for many years. After upgrading to Mountain Lion, FileMaker would no longer activate AND come to the front (FileMaker has to come to the front (always has) to run). Now it just jumps in the dock.
>
> I'm running it from the Scripts menu.
>
> Does not work:
>
> property GeneralEmailDB : alias "Sox:Users:jim:Data:Mailing Lists DBs:MailingLists.fmp12"
> property theDBsName : "MailingLists.fmp12"
>
> tell application "FileMaker Pro"
> activate
> if not (exists database theDBsName) then
> open GeneralEmailDB
> end if
> end tell
>
> tell application "Mail"
> set mCount to count of messages of mailbox "AS-Users"
> end tell
>
> repeat with i from mCount to 1 by -1
>
> tell application "Mail"
> <SNIP>
>
>
> I managed to fix the problem with a totally unnecessary, additional, activate FileMaker line with a 1 second delay added.
>
> Now FileMaker comes to the front after the delay and all is sort of well. (except for the extra lines of code and the delay)
>
> This works:
>
> property GeneralEmailDB : alias "Sox:Users:jim:Data:Mailing Lists DBs:MailingLists.fmp12")
> property theDBsName : "MailingLists.fmp12"
>
> tell application "FileMaker Pro" to activate
> delay 1
>
>
> tell application "FileMaker Pro"
> activate
> if not (exists database theDBsName) then
> open GeneralEmailDB
> end if
> end tell
>
> tell application "Mail"
> set mCount to count of messages of mailbox "AS-Users"
> end tell
>
> repeat with i from mCount to 1 by -1
>
> tell application "Mail"
> <SNIP>
> _______________________________________________
> 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
_______________________________________________
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