How can I copy Picture Link to other records
Posted: 2006-11-02 23:59:58
I wanted to create a script whereby certain fields (especially) the picture link field for the first selected record would be copied into all the checked records. That way once an image link has been set for first item in a series it can be quickly replicated to all others so they all point to the same cover.
I found 'Duplicate card' in the UpdateFields script that almost does it BUT it doesn't copy the picture link. I can see no variable giving access to this either? The script also copies from the first found (selected/checked/all) record into the following ones.
So how do you gain access to the picture link field? there seems to be no
GetField(fieldPictureFilename)) Yet Picture DOES appear in the 'modifiable fields' check list on the scripts page.
Secondly if there were an additional option when running scripts in the 'Script Limitations' box for selected+checked that ran all the selected records first then the checked ones through the script that would enable me to select record 50 and check record 49 & 51 to be able to copy from a record in the middle to the surrounding ones.
PS - My current workaround is to set the text in the description field (that appears just before the picture field in the xml to picture.jpg at the end, copy to the other fields (copy to dummy record at start if source is after the destinations then onto them). I can now search and replace in the xml file to strip this out of the destination and set up the picture field, but it's a pain.
I found 'Duplicate card' in the UpdateFields script that almost does it BUT it doesn't copy the picture link. I can see no variable giving access to this either? The script also copies from the first found (selected/checked/all) record into the following ones.
So how do you gain access to the picture link field? there seems to be no
GetField(fieldPictureFilename)) Yet Picture DOES appear in the 'modifiable fields' check list on the scripts page.
Secondly if there were an additional option when running scripts in the 'Script Limitations' box for selected+checked that ran all the selected records first then the checked ones through the script that would enable me to select record 50 and check record 49 & 51 to be able to copy from a record in the middle to the surrounding ones.
PS - My current workaround is to set the text in the description field (that appears just before the picture field in the xml to picture.jpg at the end, copy to the other fields (copy to dummy record at start if source is after the destinations then onto them). I can now search and replace in the xml file to strip this out of the destination and set up the picture field, but it's a pain.