G'day Michelle
You have to create a new document with a GUZI script in numbers
BE WARNED : MAJOR BUG If you use a display dialog with answer while the Template Chooser shows, and click on the desktop while the Template Chooser shows, you corrupt the Script Editor app. BACK UP YOUR APPLESCRIPT FOLDER BEFORE RUNNING THIS.
Bug report has been lodged.
Regards
Santa
Try this....
property Setname:"test"
my SetUp()
on SetUp() tell application "Numbers" if not (exists document 1) then set myNewDoc to my makeNewDoc(setname & ".numbers", path to documents folder as text) end if if not (exists document 1) then error number -128 if "untitled" is in name of document 1 then set name of document 1 to setname end if
end tell end setup
on makeNewDoc(n, d) tell application "Numbers" to activate tell application "System Events" to tell (first process whose title is "Numbers") to tell menu bar 1 to tell menu bar item 3 to tell menu 1 to click menu item 1 (* menu bar item 3 for menu File *) (* menu item 1 for New *) try tell application "Numbers" to save document 1 in file (d & n) return (d & n) as alias on error tell application "Finder" activate display dialog "Please choose a Template to add the Mail Manager Data to, then re-run this Application." end tell end try end makeNewDoc
|