Roxio Community: Write command returns no value to Applescript - Roxio Community

Jump to content

Roxio Community
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Write command returns no value to Applescript

#1 User is offline   ttocsck 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 1
  • Joined: 23-May 06

Posted 23 May 2006 - 10:33 AM

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?
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users