Re: AW: document "info" icon into FMPro
Re: AW: document "info" icon into FMPro
- Subject: Re: AW: document "info" icon into FMPro
- From: Mitchells Postmaster <email@hidden>
- Date: Mon, 22 Jan 2001 00:36:02 +1100
Manfred
tks for info your script - of course it works but doesn't map to FMPro
directly
I got the "default type" of the FMPro "container" field and found it was
PICT;
this script works, BUT only when the file has a PICT resource, which
even a WORD file does not have one.
Any further thoughts?
-- selectPICTres
tell application "Finder"
activate
set docRef to (choose file with prompt ,
"Choose the file whose icon you want to copy:")
set ResList to (the number of resources in docRef with their info)
end tell
tell application "FileMaker Pro"
activate
set cell "Doc_icon" of current record of database 1 to (the
resource of type "PICT" in docRef)
end tell
>
Here is an example from AppleScript Finder Guide (see Apples PDF-documents
>
pp61)
>
>
on open x
>
tell application "Finder"
>
choose file with prompt ,
>
"Choose the file whose icon you want to copy:"
>
set newIcon to icon of the result
>
repeat with i in x
>
set the icon of i to newIcon
>
end repeat
>
end tell
>
end open
>
>
>I am developing a samll FMPro document management database. I want to
>
>use the document file information window icon as a graphical
>
>decription of the object and attempted to copy that icon into a
>
>container field in FMpro.
>
>
This might help you.
>
>
Happy scripting :-)
>
>
Manfred
--
-----------------------------------------------------------------------------
-------------
John Mitchell
CQR
Tel: +61 (2) 9489 3785
Fax: +61 (2) 9489 4035
Email: email@hidden
-----------------------------------------------------------------------------
-------------