• 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
Re: Numbers '08
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Numbers '08


  • Subject: Re: Numbers '08
  • From: Michelle Steiner <email@hidden>
  • Date: Sun, 11 Jan 2009 22:00:54 -0700

Hi Scott!  I'm not surprised to see you working on Numbers, but I didn't know you were at apple.  (Or aren't you the Scott Lindsey I think you are?)

On Jan 11, 2009, at 8:59 PM, Scott Lindsey wrote:

First the easy one:

Michelle Steiner wrote:
What I can't figure out, though is why this doesn't work:

tell application "Numbers"
set thisSheet to sheet 1 of document 1
set SheetName to name of thisSheet
set thisTable to table 1 of sheet SheetName
end tell


It's a scoping issue.  You need: 

tell application "Numbers"
set thisSheet to sheet 1 of document 1
set SheetName to name of thisSheet
set thisTable to table 1 of sheet SheetName of document 1
end tell

Why doesn't this work?

tell application "Numbers"
set selectedDocument to document (item 1 of (choose from list (get name of documents)))
tell document selectedDocument
sheets
end tell
end tell

"sheets" is highlighted, with this error:

--> "Numbers got an error: Can’t make document \"Untitled\" into type integer."

But this does work:

tell application "Numbers"
set selectedDocument to document (item 1 of (choose from list (get name of documents)))
sheets of selectedDocument
end tell

-- Michelle

-- 
"Growth for the sake of growth is the ideology of the cancer cell."


 _______________________________________________
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

References: 
 >Re: Numbers '08 (From: Scott Lindsey <email@hidden>)

  • Prev by Date: Re: Numbers '08
  • Next by Date: Re: Numbers '08
  • Previous by thread: Re: Numbers '08
  • Next by thread: Re: Numbers '08
  • Index(es):
    • Date
    • Thread