• 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
Re: [X-Post] Triggering a FileMaker Script with AppleScript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [X-Post] Triggering a FileMaker Script with AppleScript


  • Subject: Re: [X-Post] Triggering a FileMaker Script with AppleScript
  • From: Deivy Petrescu <email@hidden>
  • Date: Mon, 08 Mar 2010 15:40:36 -0500

On 08/03/2010, at 14:59 , email@hidden wrote:

> 	I'm not sure which way to look at this problem - from AppleScript or FileMaker, so I'm cross-posting.
>
> 	I have an AppleScript that is triggered by Dialectic that performs a find in my FileMaker invoices db (see below).  It works nicely except for one thing.  If I'm in ScriptMaker or any of the define areas (i.e. Define Database), or if another script is running, then the FMP global fields are not populated with the phone call info.
>
> 	Is there a way that I can 'save' the AppleScript variables if FMP is 'busy' to use them when it becomes free?  How would AS know if FMP is busy, and to proceed when or if it's not?
>
> Mac OS 10.6.2
> FMPA 8.5
>
>
> on handle_incoming_call_action(contact_name, contact_number, phone_or_modem_name)
>
> 	try
> 		tell application "FileMaker Pro Advanced"
> 			activate
> 			go to database "Call Log"
> 			-- brings the named db to the front
>
> 			set data cell "g_Dialectic_Number" of table "Call_Log" to contact_number
> 			set data cell "g_Dialectic_Name" of table "Call_Log" to contact_name
>
> 			go to database "Invoices"
>
> 			do script FileMaker script "Dialectic Caller ID Lookup"
>
> 		end tell
> 	end try
>
> end handle_incoming_call_action

Haven't done any scripting with FMP since version 4; however, I believe that the "transaction" statement is exactly for that.
Transaction would prevent anyone else using the same db as you are at the same time.
I'd look into that.

Deivy Petrescu
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

  • Follow-Ups:
    • Re: [X-Post] Triggering a FileMaker Script with AppleScript
      • From: sono-io <email@hidden>
References: 
 >[X-Post] Triggering a FileMaker Script with AppleScript (From: email@hidden)

  • Prev by Date: Re: multi input form
  • Next by Date: Trying to open just three items at a time
  • Previous by thread: [X-Post] Triggering a FileMaker Script with AppleScript
  • Next by thread: Re: [X-Post] Triggering a FileMaker Script with AppleScript
  • Index(es):
    • Date
    • Thread