Re: FMP5 & Current Record
Re: FMP5 & Current Record
- Subject: Re: FMP5 & Current Record
- From: webguide <email@hidden>
- Date: Sat, 4 Nov 2000 08:27:31 +1300
G'day James
>
tell application "FileMaker Pro"
>
How does one message the data of the "Project Number" field and onto the
>
clipboard? Help!
I wouldn't. My preference would be to create an 'Info' file that goes
into the folder.
try this:
tell application "FileMaker Pro"
set serial_num to cell "Serial Number" of current record
set the_comm to cell "Comments" of current record
end tell
tell application "Finder"
set thepath to ((path to desktop folder) as text)--put your path here
make new folder in alias thepath with properties {name:serial_num}
set thepath2 to (thepath & serial_num & ":" as text)
try
set myfile to (thepath2 & (serial_num & "-INFO"))
open for access myfile with write permission
write the_comm to myfile
close access myfile
on error errmess
close access myfile
display dialog errmess
end try
end tell
it's a bit long winded and it doesn't trap for many errors but will do
what you want - you just need to substitute the path
cheers
k