Status is not Prepared for New Listing or Duplicate Listing

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)

Maybe add a New Status/State of “Created” before “Prepared” to the Smart Group Status and AppleScript listing state??

What is the Smart Group Status “Prepared And Added Auction”??
The AppleScript listing state does not contain this…

AppleScript:
listing state (prepared/‌prepared with warning/‌prepared with error/‌running/‌running with bids/‌ended unsuccessfully/‌ended successfully, r/o) : Its listing state.

Smart Group Status:
Status is not Prepared for New Listing or Duplicate Listing

This release should fix this issue:

http://downloads.iwascoding.com/downloads/GarageSale_7_2018-03-26_1.dmg

Great!! NICE!! Duplicate works MUCH smoother/better! No flashing redraw of Smart Groups!

Fixed in both the U/I and AppleScript for the Duplicate command.

But… The New Listing command still has the same issue in both the User Interface and AppleScript.

tell application "GarageSale"
set newListing to make ebay listing
– delay 300 – wait for a while and the error goes away
get listing state of newListing
end tell

This should be fixed in this release:

http://downloads.iwascoding.com/downloads/GarageSale_7_2018-03-29_2.dmg

Yep. Fixed for the AppleScript “make ebay listing” command.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.