• 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
Numbers'09 make new table doesn't apply to designed sheet.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Numbers'09 make new table doesn't apply to designed sheet.


  • Subject: Numbers'09 make new table doesn't apply to designed sheet.
  • From: KOENIG Yvan <email@hidden>
  • Date: Wed, 14 Jan 2009 17:04:39 +0100

Your tracking number for this issue is Bug ID# 6495418.

Hello

Given this simple script,

tell application "Numbers"
	activate
	tell document 1
		log "tell to sheet Data1"
		tell sheet "Data1"
			--activate
			repeat with x from 1 to 5
				set t to make new table with properties {name:"test table " & x}

			end repeat
		end tell -- sheet Data1
		log "now, tell to sheet Data2"
		tell sheet "Data2"
			activate
			repeat with x from 1 to 5
				set t to make new table with properties {name:"test table 2 " & x}
			end repeat
		end tell -- sheet Data2
	end tell -- Document 1
end tell -- Application

If the active sheet is "Date1", we get


tell application "Numbers" activate (*tell to sheet Data1*) make new table with properties {name:"test table 1"} table "test table 1" of sheet "Data1" of document "Sans titre" make new table with properties {name:"test table 2"} table "test table 2" of sheet "Data1" of document "Sans titre" make new table with properties {name:"test table 3"} table "test table 3" of sheet "Data1" of document "Sans titre" make new table with properties {name:"test table 4"} table "test table 4" of sheet "Data1" of document "Sans titre" make new table with properties {name:"test table 5"} table "test table 5" of sheet "Data1" of document "Sans titre" (*now, tell to sheet Data2*) activate sheet "Data2" of document 1 make new table with properties {name:"test table 2 1"} table "test table 2 1" of sheet "Data1" of document "Sans titre" make new table with properties {name:"test table 2 2"} table "test table 2 2" of sheet "Data1" of document "Sans titre" make new table with properties {name:"test table 2 3"} table "test table 2 3" of sheet "Data1" of document "Sans titre" make new table with properties {name:"test table 2 4"} table "test table 2 4" of sheet "Data1" of document "Sans titre" make new table with properties {name:"test table 2 5"} table "test table 2 5" of sheet "Data1" of document "Sans titre" end tell

which is odd because every tables are created in the sheet "Data1"

If we run it when the sheet "Data2" is active, we get:

tell application "Numbers"
	activate
	(*tell to sheet Data1*)
	make new table with properties {name:"test table 1"}
		table "test table 1" of sheet "Data2" of document "Sans titre"
	make new table with properties {name:"test table 2"}
		table "test table 2" of sheet "Data2" of document "Sans titre"
	make new table with properties {name:"test table 3"}
		table "test table 3" of sheet "Data2" of document "Sans titre"
	make new table with properties {name:"test table 4"}
		table "test table 4" of sheet "Data2" of document "Sans titre"
	make new table with properties {name:"test table 5"}
		table "test table 5" of sheet "Data2" of document "Sans titre"
	(*now, tell to sheet Data2*)
	activate sheet "Data2" of document 1
	make new table with properties {name:"test table 2 1"}
		table "test table 2 1" of sheet "Data2" of document "Sans titre"
	make new table with properties {name:"test table 2 2"}
		table "test table 2 2" of sheet "Data2" of document "Sans titre"
	make new table with properties {name:"test table 2 3"}
		table "test table 2 3" of sheet "Data2" of document "Sans titre"
	make new table with properties {name:"test table 2 4"}
		table "test table 2 4" of sheet "Data2" of document "Sans titre"
	make new table with properties {name:"test table 2 5"}
		table "test table 2 5" of sheet "Data2" of document "Sans titre"
end tell

which is odd because this time, every tables are in the sheet "Data2".

The Make new table instruction fails to switch to the designed sheet.

May you repair that ?

Yvan KOENIG (from FRANCE mercredi 14 janvier 2009 17:04:31)


_______________________________________________ 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
  • Prev by Date: Re: Numbers '08 (Selection range)
  • Next by Date: Re: Problems creating POP accounts, SMTP servers, and signatures in Mail.app
  • Previous by thread: Re: Problems creating POP accounts, SMTP servers, and signatures in Mail.app
  • Next by thread: Rep: Numbers '08 (Selection range)
  • Index(es):
    • Date
    • Thread