• 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: Daylight Saving bug in Numbers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Daylight Saving bug in Numbers


  • Subject: Re: Daylight Saving bug in Numbers
  • From: Yvan KOENIG <email@hidden>
  • Date: Thu, 31 Mar 2016 11:18:54 +0200

Le 30 mars 2016 à 21:22, Yvan KOENIG <email@hidden> a écrit :

…
tell application "Numbers"
tell table 1 of sheet 1 of front document
--Note: Daylight Saving Time started 2016-03-27
set value of cell 1 of row 1 to "2016-03-25"
--return short date string of (get value of cell 1 of row 1)
set xx to formula of cell "C1"
log xx (*= ""&A1*)
log (get value of cell "C1")
set formula of cell "D1" to "= " & quote & quote & "&A1"
--> error "Erreur dans Numbers : Il est impossible de régler formula of cell à \"= \\\"\\\"&A1\"." number -10006 from formula of cell
return value of cell "D1" -- ""
end tell
end tell

You will see that the given formula converts the date into a string which is correctly extracted.
I'm just puzzled by the fact that I don't retrieve the correct syntax to urge the script to insert the formula.
As you may see, my late attempt failed with error #-10006.

I'm just an ass.

The correct syntax is :


set value of cell "D1" to "= " & quote & quote & "&A1"

Yvan KOENIG (VALLAURIS, France) jeudi 31 mars 2016 11:17:12




 _______________________________________________
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: 
 >Daylight Saving bug in Numbers (From: HEB <email@hidden>)
 >Re: Daylight Saving bug in Numbers (From: Yvan KOENIG <email@hidden>)

  • Prev by Date: Re: Getting the date of the next or current recurrence of an iCal/Calendar event
  • Next by Date: Re: Getting the date of the next or current recurrence of an iCal/Calendar event
  • Previous by thread: Re: Daylight Saving bug in Numbers
  • Next by thread: Another Outlook question
  • Index(es):
    • Date
    • Thread