• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Activate doesn't - Mountain Bug?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Activate doesn't - Mountain Bug?


  • Subject: Activate doesn't - Mountain Bug?
  • From: Lists <email@hidden>
  • Date: Thu, 02 Aug 2012 13:13:39 -0700

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

  • Follow-Ups:
    • Re: Activate doesn't - Mountain Bug?
      • From: Jay louvion <email@hidden>
  • Prev by Date: Fwd: adding an extra Applescript Users Menus
  • Next by Date: Re: Activate doesn't - Mountain Bug?
  • Previous by thread: Fwd: adding an extra Applescript Users Menus
  • Next by thread: Re: Activate doesn't - Mountain Bug?
  • Index(es):
    • Date
    • Thread