I am trying to modify one of the example scripts to change the auto decline price to a percentage of the buy it now price. I thought I had it until it came with an error:
error “GarageSale got an error: Can’t get buy it now price.” number -1728 from buy it now price
Here is the script:
set theReply to (display dialog “Change the ‘auto decline best offer price’ price of all selected listings by percentage (0-100) of ‘buy it now price’:” default answer “90” buttons {“Cancel”, “OK”} default button “OK”)
if button returned of theReply is “OK” then
tell application “GarageSale”
set percentage to text returned of theReply
repeat with theListing in (get selected ebay listings)
set oldPrice to the auto decline best offer price of theListing
set the auto decline best offer price of theListing to (buy it now price * percentage / 100) as real
end repeat
end tell
end if
What am I missing?
Thanks!