Applescript returns incorrect value with blank ...
Imported from the Apple Support Forums via the Wayback Machine 🔗
Imagine there is a column of numbers, some which might have the value 0.0 and some which are blank. Imagine wanting to append a data set at the first blank cell using Applescript. As Applescript is currently implemented in Numbers, this is not possible. See the following test.
1. In Numbers, create a new blank spreadsheet.
2. Select cell "A1".
3. Format as text.
4. Execute the following line of Applescript,
tell application "Numbers" to get value of cell "A1" of table 1 of sheet 1 of front document
It returns "0.0".
I would expect a return "" since it is a empty cell formated as text, no less.
Because of this, there is no way to find a blank cell since a blank cell returns a value of 0.0 which might be a valid entry.
Anyone have any ideas for a work around?
2 replies
Sign in or join Beachball Help to reply.
- 0
- 0