• 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
Creating an iCal event from within Filemaker Pro
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Creating an iCal event from within Filemaker Pro


  • Subject: Creating an iCal event from within Filemaker Pro
  • From: Graham Sims <email@hidden>
  • Date: Wed, 5 Dec 2007 21:33:26 +0000
  • Resent-date: Wed, 5 Dec 2007 22:38:15 +0000
  • Resent-from: Graham Sims <email@hidden>
  • Resent-message-id: <email@hidden>
  • Resent-to: email@hidden


For my first foray into producing an Applescript, I wanted to:
take data from within a Filemaker Pro database
create an iCal event
return the iCal ID to Filemaker and
generate a .ics file.
I have successfully managed to extract the relevant data and create the iCal event, but
I have no idea how to create a .ics file for the event
I cannot return the iCal ID to the Filemaker database

The script is as follows:

--Get relevant data from Filemaker database
tell application "FileMaker Pro Advanced"
tell document "Data S5"
set JobNature to cell "Job Nature"
set Notes to cell "Notes"
set JobLocation to cell "Address Town"
set DateStart to repetition 1 of cell "Dates"
set DateEnd to cell "Date End"
end tell
end tell

--Set start and end dates to date format
set DateEnd to date (DateEnd)
set DateStart to date (DateStart)

--Get iCal to create new event
tell application "iCal"
activate
tell calendar "Jobs"
set newEvent to make new event at end with properties {description:Notes, summary:JobNature, location:JobLocation, start date:DateStart, end date:DateEnd, allday event:true}
set JobID to the result

--How can one get Applescript to create a .ics file for this event of the sort which is attached to an email if one control clicks the event and chooses 'Mail Event' 
end tell
view calendar at DateStart

end tell
tell application "FileMaker Pro Advanced"
tell document "DBInsp Data S5"
set cell "Commendation" to JobID
--This line comes up with the error message "Can’t make «class wrev» id "847A59A2-8DDF-4D06-BFCC-875DECD9E980" of «class wres» id "5DF80EB9-9315-4448-922E-7C3A934B43B8" of application "iCal" into the expected type."
end tell
end tell


Any help would be greatly appreciated.



Regards,

Graham Sims

---
Email: 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

  • Prev by Date: Re: Spell checking in Applescript
  • Next by Date: Re: Two mail.app applescript bugs
  • Previous by thread: What makes AppleScript a PITA for me
  • Next by thread: reading from a file
  • Index(es):
    • Date
    • Thread