Re: new to ascript & filemaker
Re: new to ascript & filemaker
- Subject: Re: new to ascript & filemaker
- From: Malcolm Fitzgerald <email@hidden>
- Date: Tue, 2 Dec 2003 10:50:17 +1100
On 1 Dec 2003, at 17:05, Buttery, Ian wrote:
As a new user to both Applescript and Filemaker, could anyone
advise me if it is possible to script import Photoshop file
information into Filemaker Pro when Importing images?
Shane may know how to get Photoshop file properties from an image.
You can get the finder to reveal some aspects of the file with "info
for". Get the file properties and dump them into fmp. Simon's
suggestion is good - use file references rather than copying the
whole image into the database.
You can set up a layout that contains only the fields you want to
fill then say something like
set filePath to (choose file of type {"JPEG", "GIFf"})
tell application "Finder" to set fileRecord to (get info for filePath)
set pathString to filePath as string
tell fileRecord
set propertyList to {it's name, it's creation date, it's file
type, it's file creator, it's displayed name}
end tell
set end of propertyList to file pathString -- this is your file
reference, drop it into the container field.
-- ** Be aware that the order of the propertyList MUST match the
field order in fmp
tell application "filemaker pro"
tell layout "ascr import"
set newRecordID to make new record with data propertyList
end tell
end tell
--
--
Malcolm Fitzgerald email@hidden
Database Manager
http://www.asauthors.org
The Australian Society of Authors ph: 02 93180877 fax: 02 93180530
_______________________________________________
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.