Jump to content
Salesforce and other SMB Solutions are coming soon. ×

Importing Images and MetaData with ScriptMaker


SantaFe

Recommended Posts

      #145853 - Sun Feb 06 2005 06:14 AM

 

 

Edit  

Reply  

Quote  

Quick Reply  

 

 

 

Hi All,

I am trying to import the MetaData from Photoshop image files (found at File>File Info) into a FM Database. And am having trouble with the ScriptMaker script.

 

Here is what I have done so far. I am using the LOOP Script from a Troi plug-in , then put the MetaData sub-scripts (also from Troi) inside it.

 

"# “This script gets the list of files into folderList ...”

# “... and then loops to import them one by one.”

Go to Layout [ Multi Image Import ]

Perform Script [ “ Check FILE plug-in” ] [ Sub-scripts ]

# “Get the list of files into folderList ...”

Set Field [ gFolderList, External("TrFile-ListFolder", "files|" & gFolderSpec) ]

Go to Record/Request/Page

[ First ]

Loop

Exit Loop If [ PatternCount(gFolderList , "¶" ) = 0 ]

New Record/Request

Perform Script [ “ Find next file in FolderList” ] [ Sub-scripts ]

# “Importing by reference doesn't need a file, as it ...”

# “...works with the clipboard. So test if you want to store a ref:” If [ gStore a Reference "Yes" ]

# “We need to copy the file to the place where FileMaker expects it.”

Perform Script [ “ Copy Picture file to impoUniq file” ] [ Sub-scripts ]

End If

# “Now do the actual importing:”

Perform Script [ “ Import 1 Picture MAIN” ] [ Sub-scripts ]

# “Randall's change to add IPTC MetaData to the import loop”

Perform Script [ “ Get IPTC MetaData and Parse” ] [ Sub-scripts ]

Perform Script [ “ Parse IPTC Meta-data” ] [ Sub-scripts ]

Perform Script [ “ Parse IPTC 25: Keywords” ] [ Sub-scripts ]

Perform Script [ “ Parse IPTC 20: Supplemental Categories” ] [ Sub-scripts ]

Perform Script [ “ Get Image URL” ] [ Sub-scripts ]

# End of Randall's additions

Pause/Resume Script [ “0:00:00” ]

End Loop

Exit Record/Request "

 

I am getting error code $$-37. What does that mean? And, what do I need to change to get this to work?

Thanks for your interest.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.



×
×
  • Create New...

Important Information

Terms of Use