AppleScript to toggle Best Offer state of selected listings

This came up recently, in a discussion of problems with grayed out “Best Offer” checkboxes.

I use this AppleScript to turn on Best Offer for all selected listings, regardless of whether the interface is available or not.

Turn off Best Offer:

tell application "GarageSale"
	repeat with theListing in (get selected ebay listings)
		set the use best offer of theListing to false
	end repeat
end tell

Turn on Best Offer:

tell application "GarageSale"
	repeat with theListing in (get selected ebay listings)
		set the use best offer of theListing to true
	end repeat
end tell

Obviously these could be combined into a single script with a dialog box that asks which to do, but I find the manual invocation using the Scripts menu helps me avoid doing the wrong one when I’m in a hurry.

1 Like