MACSCRPT Archives

March 2006

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
"Bob R." <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Wed, 22 Mar 2006 12:22:50 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (23 lines)
This "almost" works for inserting a PDF into a FM database.  (Using FM 6, OSX 10.3.9)
 ------------
tell app "finder"
  set myphoto to choose file  --the PDF file to import
  set myphoto to myphoto as string  --must be done.
end tell

tell app "filemaker pro"
  activate
  tell database "mydatabase.fp5"  --database file name; open in this example
    set cell "Page Box 1" to file (myphoto)  --Page box 1 is a local name
  end tell
end tell
 -------------
It does not retain the PDF file in the FM file if I try to Save A Copy, Close and Re-Open the FM file.  
It looks like it only saves a pointer to the PDF file.  How do I script inserting a PDF into FM and 
keeping the PDF embedded into the FM file?

thanks,


Bob R.

ATOM RSS1 RSS2