A funny bug with the pair Numbers + AppleScript

*Bug ID# 7973914*
Summary:
Trying to delete rows in a Numbers table thru AppleScript issue an erroneous error.
Steps to Reproduce:
Create a new Numbers document and run this script :
set t_name to "testIfEmpty"
tell application "Numbers" to tell document 1 to tell sheet 1
if not (exists table t_name) then
make new table with properties {name:t_name, row count:1, column count:1}
end if
delay 0.2
set tProps to get properties of table t_name
set nbr to (row count of tProps) - 1
if nbr > 0 then
try
repeat nbr times
delete row 1 of table t_name
end repeat
on error errMsg number errNbr
display dialog "What's the need for this error ?" & return & return & "error number : " & errNbr & return & errMsg & return & return & "Click the OK button" & return & "and everything will behave flawlessly." buttons {"OK"}
end try
end if
set nbr to (column count of tProps) - 1
if nbr > 0 then
repeat nbr times
delete column 1 of table t_name
end repeat
end if
end tell
Expected Results:
As we may delete the rows by hand, the script is supposed to do its job with no error.
Actual Results:
When it remains two rows, the script issue an error.
When we click the OK button, it continue and it does what it was designed to do.
Regression:
At this time, in real life I keep only :
try
repeat nbr times
delete row 1 of table t_name
end repeat
end try
in the script but I don't like to encounter a meaningless error message
May you get rid of that ?
I wish to add that I am unable to think that getting a 2 * 2 cells table when asking for a 1 * 1 one is a normal behaviour !
Yvan KOENIG (VALLAURIS, France) mercredi 12 mai 2010 17:09:37

For sure, with remove there is no error message
but the dictionary is clear :
A row, as well as a column is an item.
I would accept that the app refuse to execute the command delete row x or delete column y.
It accepts to delete rows 150 thru 3 but when there are only two rows, it refuses to delete one.
In my code, I delete row 1 because I want a table with only a standard cell.
There is no logic in the fact that I may delete column 1 with no errror message but can't do the same with row 1.
The proof that there is no reason is of course that with the try / end try enclosing the loop, the row is correctly delete. The script just ignores the reported error.
It's always wrong to flag an error when there isn't one.
The dictionary describes the function duplicate which is supposed to apply to items.
I was grinding when I discovered that it refuses to duplicate a table or a sheet but at least, it's concistent. It doesn't do 99% of the job and claims "you are fool to ask me to do that" for the last percent.
Delete / Remove isn't the unique odd pair.
I got the same kind of problem in several apps with Copy / Duplicate.
Sometimes they behave the same. Sometimes, one is completely rejected
and, worse case, sometimes one of them behave well most of the time but not always.
I think that it would be correct to
(1) edit the code so that both behave correctly in 100% of cases
or
(2) edit the code so that the 99% one completely reject the call
This said, I'm definitely pig-headed but I'm not completely foolish so,I will edit my script and use Remove
PS :
I added these two lines to my report :
I forgot to write that replacing Delete by Remove get rid of the error message.
But there is no reason to issue one with delete.
Yvan KOENIG (VALLAURIS, France) mercredi 12 mai 2010 18:33:07

Similar Messages

  • Just tried to update my iPad 2 to the current iOS, and I got an error that said the update wouldn't install. The iPad is stuck in a funny mode with the apple and spinning wheel showing. I can't power it down or restart it. What next? Thanks.

    Just tried to update my iPad 2 to the current iOS, and I got an error that said the update wouldn't install. The iPad is stuck in a funny mode with the apple and spinning wheel showing. I can't power it down or restart it. What next? Thanks.

    Try a hard reset: hold the power and home buttons simultaneously until the Apple logo appears.

  • [svn:osmf:] 13806: Fix a bug with the handling of drm metadata/ additional header

    Revision: 13806
    Revision: 13806
    Author:   [email protected]
    Date:     2010-01-27 10:00:06 -0800 (Wed, 27 Jan 2010)
    Log Message:
    Fix a bug with the handling of drm metadata/additional header
    Modified Paths:
        osmf/trunk/framework/OSMF/org/osmf/net/NetStreamPlayTrait.as

    (Removed)

  • [svn:osmf:] 10751: Fix a bug with the ReferenceSample project.

    Revision: 10751
    Author:   [email protected]
    Date:     2009-09-30 10:57:34 -0700 (Wed, 30 Sep 2009)
    Log Message:
    Fix a bug with the ReferenceSample project.
    Modified Paths:
        osmf/trunk/apps/samples/framework/ReferenceSample/org/openvideoplayer/model/ReferenceSWFE lement.as
        osmf/trunk/apps/samples/framework/ReferenceSample/org/openvideoplayer/view/MainWindow.as

    (Removed)

  • I've a "bug" with the apps downloading. This one stops at the end and stays like that infinite. The app doesn't appears normally on the homescreen. Someone can fix this?

    I've a "bug" with the apps downloading. This one stops at the end and stays like that infinite. The app doesn't appears normally on the homescreen. The app is on the home screen, and its downloading is blocked at its end, without showing the app like it should when it's finished downloadung. Does someone can help me and fix this please?

    Hi Tom
    Thanks for replying!
    I had heard that these switches didn't stack unless everything was identical.
    I only tried it at all out of pure desperation.
    I've applied and tested every version 3 firmware in standalone mode via a console cable and xmodem.
    They either never come up properly receiving decompression errors and reboot constantly in a loop.
    Occasionally they stall / jam and stay there displaying the same error with no rebooting.
    And twice out of 80-100 times I got it to boot to the username and password screen in standalone mode.
    But as soon as I made a change it crashed and started the rebooting cycle again.

  • A Bug with the new ms-6729 Bios (6729v5.30)

    Hi
    After updating my Bios to the new version, the motherboard detect my CPU(Athlon 2400+) as a 1800+.
    I tried to change settings manually without success.
    Anybody has encountred a similar problem?
    Best Regards

    Dir Sir,
    Thank you very much for your quick answer, but i believe you didn't try
    the mentioned Bios.
    I'm not a novice, i mounted more than 300 computers for my clients, and
    around 30 of last 50 computers are with MSI Motherboards.
    Cpu Fsb for Athlon 2400+ is 133 but the ddr/fsb is 4:5 because i'm using
    DDR 333 and the K7N2-V (MS-6729) is DDR 400 ready.
    With all MSI motherboards i mounted, it’s enough to put the correct CPU
    FSB and (Auto) to detect everything by the SPD.
    Certainly it's a BUG with the new version because the Bios and Windows
    detect CPU as Athlon 1800+ (1500) instead of 2400+ (20000.
    Best Regards,
    Lostan

  • Downloaded Reader XI and started to recieve error 40000015, found the fourm with the patch to the registery fix, now it tells me unable to connect to the server. To many bugs with the reader, how do reinstall an older version?

    downloaded Reader XI and started to recieve error 40000015, found the fourm with the patch to the registery fix, now it tells me unable to connect to the server. To many bugs with the reader, how do reinstall an older version?
    I click on the launcher and nothing happens, 15 min later it will tell cant connect to the server.
    My computer is a windows 8.1; 64 bit operating system. I am stationed in South Korea, but that should not affect the program. Help please.
    John

    Hi johnd83157268,
    Sorry for the inconvenience that has caused to you.
    Could you please let me know what changes have you made in the registry.
    You might need to uninstall Adobe Reader from Control Panel and try install it again from the following link:
    Adobe Reader Install for all versions
    Please ensure that you are logged in as administrator and anti-virus is disabled as that might interrupt installation.
    Try again and then let me know.
    Regards,
    Anubha

  • Bug with the cover flow in OS3.1.2

    I am a Chinese user of iTouch and I have found a bug with the cover flow.
    In the normal mode, there is only 1 album. But when i switch it to the cover flow, it has more than one, all of which have the complete album after it.
    what's still peculiar is that
    1.it happens only to the simplified chinese songs.
    2.when i switch the language of my itouch to traditional chinese or english, there is 1 cover flow.
    can anyone help me?

    tell apple. http://www.apple.com/feedback/ipodtouch.html

  • When trying to edit a photo, it disappears (black screen) or screen is full of lines. Is this a bug with the latest software update?

    After updating with the latest software, when trying to edit a photo, it disappears (black screen) or screen is full of lines. If I blindly crop or edit the photo, when I exit edit mode, those changes have been made, but obviously this is unacceptable. Is this a bug with the latest software update?

    There are several possible causes for the Black Screen issue
    1. Permissions in the Library: Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Include the option to check and repair permissions.
    2. Minor Database corruption: Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild.
    3. A Damaged Photo: Select one of the affected photos in the iPhoto Window and right click on it. From the resulting menu select 'Show File (or 'Show Original File' if that's available). (On iPhoto 11 this option is under the File -> Reveal in Finder.) Will the file open in Preview? If not then the file is damaged. Time to restore from your back up.
    4. A corrupted iPhoto Cache: Trash the com.apple.iPhoto folder from HD/Users/Your Name/ Library/ Caches...
    5. A corrupted preference file: Trash the com.apple.iPhoto.plist file from the HD/Users/ Your Name / library / preferences folder. (Remember you'll need to reset your User options afterwards. These include minor settings like the window colour and so on. Note: If you've moved your library you'll need to point iPhoto at it again.)
    If none of these help: As a Test:
    Hold down the option (or alt) key key and launch iPhoto. From the resulting menu select 'Create Library'
    Import a few pics into this new, blank library. Is the Problem repeated there?

  • Downloaded 11.0.3 (42) 64 bit to my MacBook Pro and it crashes every time I select a song a use the 'add to' function to add to a play list. It's never done this before, is it a bug with the new version?

    downloaded 11.0.3 (42) 64 bit to my MacBook Pro and it crashes every time I select a song a use the 'add to' function to add to a play list. It's never done this before, is it a bug with the new version?

    You could just disable updates. Change these settings in about:config.
    * app.update.auto - set to false
    * app.update.enabled - set to false
    You can still check for updates with the "Check for Updates" button in the About Firefox window, but it will download the update file anyway if there is an update available. You can also check which is the current release from here:
    * http://sjc.mozilla.com/en-US/firefox/new/

  • Getting chapter numbers to show up in the TOC with the page numbers...

    First, thank you all very much for posting replies.  This forum is wonderful.
    I have a doc that needs to have the chapter numbers show up with the page numbers in the TOC.
    I insert the <$chapnum> and <$currentpagenum> in the footer, and I get 1-1 to show up.
    To include the 1-1 in the TOC, do I have to edit the Reference Page, or is there another way.
    Thank you SO much for your help!!!!!!!!!!!!!

    Thank you VERY much!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    Got it to work.  However, my TOC will not update with the new building blocks.
    Have played and played with it.  Any suggestions?
    Thank you!!!!!!!!!!!!!!!!

  • Funny problem with the mapping

    Dear All,
    I am facing with a funny problem with the mapping.
    I am working on a scenario in which Invoice IDOC created in R/3 will be posted to XI and then in XI, mapping are done to create an XML file out of that IDOC.
    In the Idoc, there is a segment E1EDKA1 which is getting created multiple times for different partners alongwith their details. The fields in E1EDKA1 segment are: PARVW,PARTN LIFNR etc.
    In the output I just want LIFNR number where PARVW = RE or RS.
    I have done the required mapping and when I am testing the mapping its giving me the required results correctly but when I make this scenario live then in real-time, the output XML file has no value for LIFNR.
    Can anybody guide me out why is it happening tht during mapping testing its giving the correct result but at real time the mapping is returing no value.
    Warm Regards,
    N.Jain

    Hi Nishant,
    Are you sure the test data which you are using while testing the mapping in IR and the one which comes when you test real time is the same?
    The data which comes real time. Copy the source payload and then test in mapping. See if you get the right data which you expect. If you do then theres some problem.
    Now also go to the same message and in trace you can find out the GUID of the mapping program which is used.
    Go to RWB - Last button..not sure what the name is .. something similar to Cache.. Find your mapping program and see if the GUID Matches. If the GUID matches then it is okay.
    Also try to do the following..
    Reactive the MM/IM.
    Go to ID. Make some dummy change in Interface determination and then activate it.
    Check the cache notification to make sure if the cache is updated.
    If the above doesnt help you let us know.
    Regards,
    Sumit

  • I am having bugs with the ios 5, after it got the update it is unable to make outgoing calls. in-place the incoming and outgoing texts are working please help me asap...!

    i am having bugs with the ios 5, after it got the update it is unable to make outgoing calls. in-place the incoming and outgoing texts are working please help me asap...!

    Sometimes and this is network dependant if they suspect the phone to be lost or stolen as in this case with change of Sim card and provider then the origonal network can and some will block the phone untill you have rang them and proven it's not the case or if you have bough this 2nd hand then the origonal seller may have stopped paying the contract bill and thus the phone is blocked

  • Bug with Worksheet Line Numbers in 2.1?

    I'm seeing an "issue" with line numbers enabled in the worksheet. When i have a plsql block with nested procedure/functions, and I collapse/expand the nested code, the line numbers in the worksheet don't consistently update till I resize the window.
    Example)
    1 [-] declare
    2 [-]   function f1
    3       return number
    4       as
    5         return null;
    6       end f1;
    7     begin
    8       dbms_output.put_line(f1) ;
    9     end;
    10    /turns into this when I collapse:
    1 [-] declare
    2 [+]   function f1...
    3     begin
    4       dbms_output.put_line(f1) ;
    5     end;
    6     /but turns into this when I resize sel developer:
    1 [-] declare
    2 [+]   function f1...
    7     begin
    8       dbms_output.put_line(f1) ;
    9     end;
    10    /I'm using the 2.1 release with the included JDK on a WinXpSP2 box.

    Hi Dylan,
    Thanks for this feedback.
    I have log a bug for tracking.
    Bug 8982049 - FORUM:LINENUMBER IS GUTTER NOT REFRESHED AFTER FOLDING
    Regards,
    Dermot.
    SQL Developer Team

  • My iphone 4s is importing contact information from FB and my email account.  When I pull up my contacts it only shows e-mail information and the phone numbers have disappeared.  How do I get my old contact list back with the phone numbers?

    My iphone 4s is importing contact information from FB and my e-mail account.  When I try to look at my contact list it is showing everyone I have on those lists and it only shows their email addresses.  The phone numbers for my contacts have disappeared and I don't know how to get them back.

        Hi macmac57. I don't memorize my numbers anymore, so I know how important it is to have all your contacts on your phone at all times. Did an update occur or a new application download when your contacts disappeared? Have you been backing up your device with your computer? You can try to restore your contacts from your last backup. http://support.apple.com/kb/HT1414
    Are you syncing your iPhone between multiple computers? This can sometimes create issues with your contacts. http://support.apple.com/kb/TS1474
    If you were already using iCloud to back up your contacts, check out http://support.apple.com/kb/TS3998 for some great tips from Apple.
    I do hope this has been helpful for you to restore your contacts.
    JenniferH_VZW
    Please follow us on Twitter @vzwsupport

Maybe you are looking for

  • Photoshop 2014 crashing unless external display is present

    Hello - Running Photoshop CC 2014 on a 2013 Macbook Pro Retina Display. 16 gb ram, OS X 10.9.5 with all software updates installed as of Nov 1 2014. Recently, I've discovered that Photoshop crashes on startup if my Macbook Pro is not connected to an

  • [SOLVED] Gnome 3.12 search results in Activities overview

    When I'm searching for an application in the Activities overview I'm getting the icons on the top row of matching applications, and beneath that I have 4 empty rows of search results: 1 for Terminal, 1 for Files, 1 for Keys and 1 for Weather. Those 4

  • Exporting from Acrobat 3D PDF to CAD formats

    Hello, Good day, hope all is great. According to the Adobe Knowledgebase Acrobat 3D 8 can export a PDF into different CAD formats like parasolid. http://www.adobe.com/go/kb402271 I am using the trial version of Acrobat 3D and have not been found out

  • CSS11501 Upgrade Problem - can't remove software image

    Hi, We have a CSS11501 which came pre-installed with software version 7.20 (Build 206). I wanted to upgrade this to version 7.40, so our supplier sent us a CD with the software image. The install failed, because the supplier sent us the wrong image (

  • Apple TV-homesharing

    Hello, I Have a problem finding my iTunes library on the Apple TV. Homesharing is turned on on both devices and trhy are conected to the same network but Apple tv is through WiFi and pc is on cable. Is that the problem ? Thanks