Re: Filemaker scripts [newbie post]
Re: Filemaker scripts [newbie post]
- Subject: Re: Filemaker scripts [newbie post]
- From: Kai Edwards <email@hidden>
- Date: Tue, 19 Feb 2002 03:24:39 +0000
on Sun, 17 Feb 2002 01:37:15 +0000, Jason Davies <email@hidden> wrote:
>
Date: Sun, 17 Feb 2002 01:37:15 +0000
>
From: Jason Davies <email@hidden>
>
Subject: Re: Filemaker scripts [newbie post]
>
To: AppleScript Users <email@hidden>
>
I altered your suggestion appropriately but got the following error: "Expected
>
end of line etc but found plural class name " where "Records" was highlighted.
>
>
> Go to Layout ["1-field layout"]
>
> Copy All Records
>
> Go to Layout [original layout]
>
>
>
This is with FM 5.5 on OS X.1.2, Ishould have said.
>
>
> 4) Then continue with the part of the script that pastes into Nisus
Sorry Jason. I should have made it clearer that the lines referred to were
intended as a FileMaker Pro script. (Sometimes it can be simpler to just
produce a local script within FMP and then call it from AS with 'do
script'.)
If you want to use AS to copy a field across all found FMP records, then try
something like this:
-------------------------------------------------------------------
tell application "FileMaker Pro"
activate --required for clipboard commands
set the clipboard to field "theField" as string
end tell
-------------------------------------------------------------------
(Obviously, you'll need to change the name "theField" as required.)
Be aware however that, just as the FMP command <Copy All Records> doesn't
copy styles, neither does this method.
Also, the copied text will be tab-separated. To copy the data as a list, use
something along these lines instead:
-------------------------------------------------------------------
tell application "FileMaker Pro" to set txt to field "theField" as string
set text item delimiters to tab
set txt to txt's text items
set text item delimiters to return
set txt to txt as string
set text item delimiters to ""
set the clipboard to txt
-------------------------------------------------------------------
>
Thanks to some patient help off-list from Ehsan I had the script working
>
yesterday. Now I come to use it again, I find that I am right back where I
>
started, with Nisus only getting the first record. Does anyone else script
>
with
>
Nisus? Do they find it reliable? I am using 6.02 and 6.5 and both return
>
unpredictable results. Sometimes they do what I expect, sometimes what I
>
don't,
>
and quite often it does nothing but Script editor continues to try to complete
>
the command and I have to wait for a timeout or force-quit it.
Sorry, I'm not using Nisus so I can't share any experience in that area.
But before putting all the problems down to Nisus, perhaps you might
consider checking your script(s) - by posting it/them here to encourage more
specific comments and suggestions?
I do hope you can find a way through these difficulties.
Best wishes.
Kai
-------------------------------------------------------------------
BTW, I'm a little confused. Did you respond twice to my message?...
Message: 4, applescript-users digest, Vol 3 #162 - 12 msgs
Message: 2, applescript-users digest, Vol 3 #164 - 3 msgs
(It looks like your original query was also posted twice):
Message: 17, applescript-users digest, Vol 3 #155 - 18 msgs
Message: 2, applescript-users digest, Vol 3 #157 - 13 msgs
Spooky...
-------------------------------------------------------------------
--
**********************************
Kai Edwards Creative Resources
1 Compton Avenue Brighton UK
Telephone +44 (0)1273 326810
**********************************
_______________________________________________
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.