• 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
exporting container fields in FMP
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

exporting container fields in FMP


  • Subject: exporting container fields in FMP
  • From: Kevin Carter <email@hidden>
  • Date: Wed, 11 Jun 2003 16:50:13 -0400

On Wednesday, June 11, 2003, at 03:07 PM, email@hidden wrote:

I would like to save the contents of a container field to disk with the
filename being provided from another field. From what I can tell there
is no way to save the contents of a container. Hope I'm wrong.

Yes, it's possible, provided that the applescript is executed outside of FMP (i.e., not within a ScriptMaker call).

it looks something like this:

tell app "filemaker pro"
set newFileName to get data of cell "fooText" of current record of database "fooFile"
set newFileData to get data of cell "fooContainer" of current record of database "fooFile" -- as data
end tell

set fileSession to open for access file ((path to desktop) as string) & newFileName with write permission
set eof fileSession to 0
write newFileData to fileSession
close access fileSession
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.
  • Follow-Ups:
    • Re: exporting container fields in FMP
      • From: Steve Savery <email@hidden>
    • Re: exporting container fields in FMP
      • From: Gary Lists <email@hidden>
  • Prev by Date: Re: Resurgence in AppleScript interest
  • Next by Date: Re: Resurgence in AppleScript interest
  • Previous by thread: Re: Newbie question re records
  • Next by thread: Re: exporting container fields in FMP
  • Index(es):
    • Date
    • Thread