When doing a Duplicate of an existing Listing in the User Interface left pane, the Smart Groups are updated and displayed before the new listing’s Status is set to Prepared. So the new duplicated listing shows up in some of my Smart Groups, then a few minutes later it disappears. (Also briefly happens during Relisting which does a “duplicate”)
When doing a “duplicate listing” or “make ebay listing” via AppleScript, the Property “listing state” is not immediately available. Wait a few seconds, and it is.
Apparently, the New/Duplicated Listing “Status/State” is not available and updated immediately when the listing is created.
This works:
tell application "GarageSale"
set thelisting to first item of (get selected ebay listings)
set newListing to duplicate listing thelisting
get title of newListing
end tell
This gives: error “GarageSale got an error: AppleEvent handler failed.” number -10000
tell application "GarageSale"
set thelisting to first item of (get selected ebay listings)
set newListing to duplicate listing thelisting
get listing state of newListing
end tell
Wait a few seconds and the error goes away:
tell application "GarageSale"
set thelisting to first item of (get selected ebay listings)
set newListing to thelisting
get listing state of newListing
end tell
Using GarageSale Version 7.0.14b3 (831), macOS Version 10.12.6 (16G1212)