• 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
AppleScript and FileMaker problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AppleScript and FileMaker problem


  • Subject: AppleScript and FileMaker problem
  • From: Dale J Martin <email@hidden>
  • Date: Wed, 29 Mar 2006 09:44:09 -0500

Hi all,

I'm having a bit of a problem here with getting data into the correct FileMaker database. I have two database files open and I'm using the script below which states to use the database  "weather.fp5" but for some reason if the second database is the front most window it tries to use that one. I'm using FileMaker 6 with 10.4.

Any thoughts .... one of the versions of the script is posted below.

Thanks,

Dale

try

tell application "WeatherTracker"
set Bar to Current Pressure of Station "test"
set Temp_out to Outdoor Temperature of Station "test"
set Hum_out to Outdoor Humidity of Station "test"

end tell

end try


tell application "FileMaker"
activate
try
activate database "weather.fp5"
on error
open "weather.fp5"

end try
set theRecord to create new record
set cellValue of cell "Bar" of the theRecord to Bar
set cellValue of cell "Temp_out" of the theRecord to Temp_out
set cellValue of cell "Hum_out" of the theRecord to Hum_out
--and so on

try
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: AppleScript and FileMaker problem
      • From: "Gary (Lists)" <email@hidden>
  • Prev by Date: With Transaction in System Events
  • Next by Date: Panther versus tiger
  • Previous by thread: With Transaction in System Events
  • Next by thread: Re: AppleScript and FileMaker problem
  • Index(es):
    • Date
    • Thread