Hi Ilja,
That is just fantastic. It works a treat! Thank you so much. I will be adjusting our scripts tomorrow.
Superb as ever!
Thanks again.
Rufus
Hi Ilja,
That is just fantastic. It works a treat! Thank you so much. I will be adjusting our scripts tomorrow.
Superb as ever!
Thanks again.
Rufus
Hi Ilja,
Is there also a corresponding getSpecific command???
Like: getSpecific of first selected template with name āMPNā
Thanx,
Neal
Hi Ilja,
Or better yet: āgetSpecific of first selected templateā to get a list of all Attribute ānamesā and āvaluesā like:
Brand: Atlas
Type: Diesel Locomotive
MPN: 123456789012
Thanx,
Neal
Hi Ilja,
And even better still:
How about AppleScript get and set for the Barcode field also???
And the Condition (New/Used) field.
This way people can insert the Barcode just like the MPN.
And I can find all templates that are New and do not have a Barcode nor a MPN.
Thanx,
Neal
Give them a finger, and theyāll take the whole hand.
I just looked up GarageSaleās scripting dictionary in the Script editor, and āconditionā and ābarcodeā are already there in the ātemplateā class.
Hi Ilja,
OH!! GREAT!
Sorry, guess I missed thatā¦
Thank You!
Neal
Hi Ilja,
Wellā¦ AppleScript Dictionary error/bug:
In Script Editor Paste in this script:
tell application "GarageSale"
get barcode of selected templates
end tell
The click Run and script becomes:
tell application "GarageSale"
get bid count of selected templates
end tell
Neal
Hi Ilja,
Works Great!!!
Thanx!!!
Neal
Just like to say thank you as well for adding the SETSPECIFIC command - absolutely wonderful and something Iāve wanted to see for a long time.
I also second Nealās request if additional applescript commands could be added for attributes, such as a GETSPECIFIC - that way the existence and value of attributes can be checked allowing changes to be made dependent on the existing value or existence of a particular attribute.
The SETSPECIFIC is great but difficult to use in bulk as it automatically adds the attribute if it doesnāt already exist, something which is not always desirable.
Hi Ilja,
In GarageSale 6.9.8, could you PLEASE add the corresponding getSpecific AppleScript command:
So I can find all āold/outdatedā Attributes:Custom Details fields in all my 11,000+ templates and remove or change them.
This will Greatly help in the cleanup of my MANY 11,000+ old templates before converting to the new GarageSale 7.
to get a list of all Attribute ānamesā and āvaluesā like:
Brand: Atlas
Type: Diesel Locomotive
MPN: 123456789012
tell application āGarageSaleā
getSpecific of first selected template
end tell
Or at least to get one named attribute:
123456789012
tell application āGarageSaleā
getSpecific of first selected template with name āMPNā
end tell
āAs mikeytttt also said:ā
I also second Nealās request if additional applescript commands could be added for attributes, such as a GETSPECIFIC - that way the existence and value of attributes can be checked allowing changes to be made dependent on the existing value or existence of a particular attribute.
The SETSPECIFIC is great but difficult to use in bulk as it automatically adds the attribute if it doesnāt already exist, something which is not always desirable.
Thanx a Bunch!!
Neal
Sorry, but I donāt think weāll be adding this feature any time soon.
At the moment our highest priority is getting GarageSale 7 out of the door, which already has the capability of querying specific through AppleScript.
Hi Ilja,
Iāve been trying to extend the use of the setSpecific command and it is working wonderfully. One query though, where an item specific is a multi-select is ot possible to use this command to enter more than 1 value?
Iāve been trying various different syntax versions but havenāt found one yet.
An example might be for the ItemSpecific āAdditional Inputs/Outputsā.
I have tried
setSpecific of first selected template with name āAdditional Inputs/Outputsā to value "Analog In"
setSpecific of first selected template with name āAdditional Inputs/Outputsā to value "Analog Out"
setSpecific of first selected template with name āAdditional Inputs/Outputsā to value āMIDI I/Oā
but it just overwrites each time. Any bright ideas?
Thanks for your help.
Cheers
Rufus
Hi Rufus,
itās just a guess but did you already tried something like this?:
setSpecific of first selected template with name āAdditional Inputs/Outputsā to value āAnalog In, Analog Out, MIDI I/Oā
Regards, Kristian
Hi Kristian,
Itās a good thought and yes I have tried it but sadly it just adds a single line with the value Analog In, Analog Out, MIDI I/O rather than 3 different lines.
I also tried separating the values with a carriage return and a semi-colon but no luck.
Any other suggestions?
Thanks
Rufus
I donāt think thereās another way to do this.
However, if you need separate lines it might be needed to use slightly different names, like this:
setSpecific of first selected template with name āAdditional Inputs/Outputsā to value āAnalog Inā
setSpecific of first selected template with name āAdditional Inputs/Outputs #2ā to value āAnalog Outā
setSpecific of first selected template with name āAdditional Inputs/Outputs #3ā to value āMIDI I/Oā
Regards, Kristian
Hi Kristian,
Ah, fair enough. Thereās a thought. Iāll give that a try and see how it looks.
Thanks for your help
Rufus
hi, I have the same problem, could you please send me the script?
This topic was automatically closed after 7 days. New replies are no longer allowed.