Re: FMP container scripting
Re: FMP container scripting
- Subject: Re: FMP container scripting
- From: Gary Lists <email@hidden>
- Date: Fri, 17 Oct 2003 07:53:07 -0400
On or about 10/16/03 7:15 PM, Mario Kolaszewski wrote:
>
Is there a way to place only the path to an image in a container field,
>
and not the image itself, using AS?
Mario. Yes, it is.
In AS, when you "set" a variable to the contents of a container
(image/file/sound), you get a string path for the file inserted. (Keep in
mind that if you move the file, the path does not update.)
So, for example, from one of my databases, here is a functioning bit of
AppleScript:
...
set path_string to (cell "Image Lo Res" of current record)
-- you now have a string
-- open the file in its creator app
tell application "Finder"
activate
try
open file path_string
on error errMsg number errNum
display dialog "Oops! Can not open the file." buttons "OK"
end try
end tell
...
There is more on this subject at the FM Pro List archive:
http://listserv.dartmouth.edu/scripts/wa.exe?S1=fmpro-l
...and also (I think) in this AS Users list archive (IIRC). See URL at
bottom of message.
--
Gary
MacOS 9.1 / "9 is Fine"
_______________________________________________
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.