• 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: Filemaker scripts [newbie post]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Filemaker scripts [newbie post]


  • Subject: Re: Filemaker scripts [newbie post]
  • From: Kai Edwards <email@hidden>
  • Date: Sat, 16 Feb 2002 22:49:27 +0000

on Fri, 15 Feb 2002 14:32:30 +0000, Jason Davies <email@hidden> wrote:

> I have written a filemaker script (not an AS) that copies text, pastes it to
> Nisus, then is supposed to copy the same field in the next record, until it
> reaches the last. However, though it seems to move to the next record, it
> pastes
> the same thing repeatedly in Nisus. Clearing the clipboard (via the Finder)
> doesn't seem to make a difference.
>
> Interrupting the script with a pause, then hitting continue, remedies the
> problem (is this a bug?). But we are talking about hundreds of entries...
>
> Can I remedy this error by inserting an AS? If so...
>
> (have tried goto next record and similar; can't use ID of record as it is a
> found set with irregular IDs; have tried Filemaker help; OS X help; archives;
> calling the script via another script to refresh as a pause does; much hair
> scattered over desk. In other words, the list is not a first resort, much
> respect to expert listers to whom this is obvious...).


It's a little difficult to say exactly what's going wrong without a bit more
information about the script itself, Jason.

However, instead of going down that route in more detail just yet, I was
wondering about the general approach you've taken. From your description, it
sounds as if you're trying to copy the contents of a field and paste it into
Nisus on a record-by-record basis.

My guess is that you've handled the copying part of this process by using:

Copy [Select, "theField"]

Forgive the oblique response, but is there any reason why you don't copy
"theField" (or whatever you've called it) across all records - and then
paste the result into Nisus all in one go?

Of course, you may need to paste the field data into a specific, separate
positions within Nisus. But if you're simply trying to copy and paste as a
list, then the 'Copy All Records' method should speed up the entire process
considerably.

Here's how I would approach it:

----------------------------------------------------------------------

1) In Layout mode, create a new layout (called, say, "1-field layout")

2) Set the new layout so that it contains only the field to be copied

3) Create a script that goes something like this:

Go to Layout ["1-field layout"]
Copy All Records
Go to Layout [original layout]

4) Then continue with the part of the script that pastes into Nisus

----------------------------------------------------------------------

This will avoid the need for the Loop/End Loop routine that I assume is in
your current script.

In addition, since you say you have hundreds of entries, I think you'll be
impressed with the performance improvements gained from this approach.

HTH

Kai

--

**********************************
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.

  • Follow-Ups:
    • Re: Filemaker scripts [newbie post]
      • From: Jason Davies <email@hidden>
  • Prev by Date: Re: Tracking a script's progress (was renaming files in Finder)
  • Next by Date: Re: smi-file to launch an app to open the volume
  • Previous by thread: Filemaker scripts [newbie post]
  • Next by thread: Re: Filemaker scripts [newbie post]
  • Index(es):
    • Date
    • Thread