[php]
set urlsList to {}
tell application "Safari"
repeat with i from 1 to number of documents
set thisDoc to item i of documents
tell thisDoc
copy URL to end of urlsList
end tell
end repeat
end tell
tell application "Camino"
repeat with i from 1 to number of items in urlsList
set thisURL to item i of urlsList
make new document with properties {URL:thisURL}
end repeat
end tell
[/php]
That should do it - but my copy of camino complains when trying to make a new document with props:
Code:
2005-11-21 10:37:32.346 Camino[2680] A key or value could not be handled while converting an Apple event record to an NSDictionary.