Portfolio not updating all records
Portfolio not updating all records
- Subject: Portfolio not updating all records
- From: "Fleisher, Ken" <email@hidden>
- Date: Mon, 11 Dec 2006 15:23:54 -0500
- Thread-topic: Portfolio not updating all records
Title: Portfolio not updating all records
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