• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Another numbers bug
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Another numbers bug


  • Subject: Another numbers bug
  • From: Brian Christmas <email@hidden>
  • Date: Fri, 20 Feb 2009 10:15:00 +1100

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

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Another numbers bug
      • From: Michelle Steiner <email@hidden>
  • Prev by Date: Running from script menu - the invisibility
  • Next by Date: Re: Another numbers bug
  • Previous by thread: Another Numbers bug
  • Next by thread: Re: Another numbers bug
  • Index(es):
    • Date
    • Thread