• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: FMP5 & Current Record
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: I've changed the name of a file...
  • Next by Date: Re: FMP5 & Current Record
  • Previous by thread: Re: FMP5 & Current Record
  • Next by thread: Re: FMP5 & Current Record
  • Index(es):
    • Date
    • Thread