Is it possible to extract the finder comments to the description field in the catalogue or any other field?
Scenario: you have a lot of pictures downloaded from the web and the finder comment shows the URL. You wish to add the URLs to your Catalogue.
Here is source code for an AppleScript that shows how to extract information from the Finder Comments field into the Portfolio Description field. To use it just put it in the Portfolio Application's "Scripts" folder, re-start Portfolio, then open your catalogue and select the items in the gallery you want to run the script on. Then select the script from the "Scripts" pull-down menu.
-- 1.0 - Check to make sure Portfolio is running tell application "Finder" set P_app to every process whose name contains "Portfolio" if P_app is {} then display dialog "Portfolio must be running for this script to operate." buttons {"OK"} default button {"OK"} return end if end tell tell application "Extensis Portfolio" set theCount to count every record of the selection of front gallery repeat with i from 1 to theCount set filepath to field "Path" of record i of the selection of front gallery tell application "Finder" if file filepath exists then set filecomment to comment of file filepath as text tell application "Extensis Portfolio" set the field "Description" of record i of the selection of front gallery to filecomment end tell else display dialog "File not found - Check Portfolio Path or Update Catalog!" end if end tell end repeat end tell
Question: Extracting Finder comments to import to Portfolio (Mac OS) [FAQ00110.htm]
Last Update:- 31 May 2006
Site and articles © Mark Anderson 2001-2007 - Visit my home page