Jump to content
  • Who's Online   0 Members, 0 Anonymous, 15 Guests (See full list)

    • There are no registered users currently online
  • 0

Write command returns no value to Applescript


ttocsck

Question

In scripting Toast 6.0.3 on OS X 10.4.6 I have found that the write command does not return any value to Applescript. The following syntax executes just fine but leaves myvar an undefined variable:

 

tell application "Toast 6 Titanium"

set obj_newDisc to make new Data disc

add to obj_newDisc items {alias str_archiveContentPath}

set dlg_proceed to display dialog "Insert a blank DVD, then click \"OK\""

if button returned of dlg_proceed is "OK" then set myvar to (write obj_newDisc)

end tell

 

Even within a Try statement, Toast handles any errors, dismisses its own dialog boxes, and ejects the disc. There is no error for Applescript to trap and my script has no way to know whether the burn and verification were successful. This is critical because The script needs to delete the original content after it is successfully archived.

The compare command is no help. It will always return a value of false in this situation because Toast creates "Desktop DB" and "Desktop DF" files on the disc and only the boolean value is returned to Applescript.

 

Am I missing something here?

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...