• 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
: Portfolio not updating all records
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

: Portfolio not updating all records


  • Subject: : Portfolio not updating all records
  • From: "Fleisher, Ken" <email@hidden>
  • Date: Fri, 15 Dec 2006 12:19:59 -0500
  • Thread-topic: : Portfolio not updating all records

Title: : Portfolio not updating all records
There were no responses yet, so I’m just trying one more time... Can anyone shed some light on this Portfolio problem?

ORIGINAL MESSAGE:

Can anyone tell me why only some records get updated and others not when using this script in Portfolio?

Thanks in advance...

tell application "Portfolio 8.1"
    tell document 1
        tell the selected gallery
           tell the selection
               set approvedBy to the value of field "_ApprovedBy"
                set approvedDate to the value of field "_ApprovedDate"
                set approvedAgainst to the value of field "_ApprovedAgainst"
            end tell
           
            -- I've tried it this way
           set the value of field "_ApprovedBy" of every record to approvedBy
           set the value of field "_ApprovedDate" of every record to approvedDate
           set the value of field "_ApprovedAgainst" of every record to approvedAgainst
           
            -- And I've also tried it this way, with no success
           set c to count of every record
           repeat with i from 1 to c
               set the value of field "_ApprovedBy" of record i to approvedBy
               set the value of field "_ApprovedDate" of record i to approvedDate
               set the value of field "_ApprovedAgainst" of record i to approvedAgainst
           end repeat
           
        end tell
   end tell
end
tell

Also, what is the syntax to perform the above operations on multiple fields in one line. I’ve tried this:

set {approvedBy, approvedDate, approvedAgainst} to the value of field {"_ApprovedBy", "_ApprovedDate", "_ApprovedAgainst"}

But it did not work...

--
Ken Fleisher

Photographer
Imaging & Visual Services
National Gallery of Art
Washington, D.C.

Phone: (202) 712-7471
email@hidden
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/mailman//archives/applescript-users

This email sent to email@hidden

References: 
 >Portfolio not updating all records (From: "Fleisher, Ken" <email@hidden>)

  • Prev by Date: Re: rm does not always remove immediately
  • Next by Date: Re: AppleScript-Users Digest, Vol 3, Issue 634 (Holidays)
  • Previous by thread: Portfolio not updating all records
  • Next by thread: Problem with AppleScript
  • Index(es):
    • Date
    • Thread