simple AppleScript has stopped working with the latest version of numbers

Hello

I have a simple AppleScript that converts marked cells in number of "-" to "+". Now with the new version of numbers (3.6.1) Applescript only converts the first cells and ignores the other marked cells.

I'd appreciate it if someone could have a look?

Thanks in advance!

on run {input, parameters}

  --select cells, run; converts positive numbers to negative; and vice versa

  tell application "Numbers" to tell the front document to tell active sheet to tell (first table whose class of selection range is range)
       tell the selection range to repeat with i from 1 to count cells
            tell cell i    
                 try     

                      set its value to (its value) * -1          

                 end try         
            end tell    
       end repeat
  end tell
  --end of script

  return input
end run

Hello

Because the selection changes when the script change the value of the first cell, numbers select this cell.

Use the get, like this:

say (get selection range) to repeat with i from 1 to count cells

Tags: Mac OS & System Software

Similar Questions

  • My bi-ecrans Setup has stopped working with the latest update of Windows

    My bi-ecrans Setup has stopped working since the last windows update.  The second screen is relegated to never turn on and in the part 'View' of the Control Panel, I can't change the 2nd monitor resolution of anything in addition to 480 x 640.  I installed the latest drivers for the video card and two monitors.  I have everything down, powered, entretienavec left for a few minutes and fed up, nothing.  It has been like that for a few days now.  Any advice would be very useful,

    Thank you

    Tyler

    Details:

    PC: HP Compaq 8200 Elite

    Graphics card: AMD Radeon HD 6500 Series

    First monitor: ViewSonic 2030

    Second monitor: Dell 1908FP

    All pilots are underway according to Dell, ViewSonic, AMD and Microsoft.

    Latest patches from Windows Update killed my dual Setup monitor:

    Update of security for Microsoft Office PowerPoint 2007 (KB2596764)

    A security update cumulative for the stop bits ActiveX for Windows 7 for x 64-based systems (KB2618451)

    X 64-December Windows malicious software removal tool (KB890830) 2011

    Update security for Windows 7 for x 64-based systems (KB2620712)

    Update of security for Microsoft Office PowerPoint 2007 (KB2596912)

    Update for Microsoft Office Excel 2007 (KB2596596)

    Update of security for Microsoft Office Publisher 2007 (KB2596705)

    Update of security suites for Microsoft Office 2007 (KB2596785)

    Cumulative Security Update for Internet Explorer 9 for Windows 7 for x 64-based systems (KB2618444)

    Updated for suites Microsoft Office 2007 (KB2596651)

    Update security for Windows 7 for x 64-based systems (KB2639417)

    Updated for suites Microsoft Office 2007 (KB2596789)

    Update security for Windows 7 for x 64-based systems (KB2619339)

    Update for Windows 7 for x 64-based systems (KB2633952)

    There is no update stated in your post which could have implications on your graphics card, or its driver.

    Have you installed the latest graphic driver AMD in the AMD site?

    http://sites.AMD.com/us/game/downloads/pages/radeon_win7-32.aspx

    NB this link is the 32-bit win7 driver.

  • I have the first Pro 2015 but when I try to open a project that has been registered with the Premier Pro 2015 on another machine I get an error message that says that the project has been saved with the latest version.  Help!

    I have the first Pro 2015 but when I try to open a project that has been registered with the Premier Pro 2015 on another machine I get an error message that says that the project has been saved with the latest version.  Help!

    It seems that your version is not the latest.

    Check help / about... what version it reads.

    It should be 2015. (9.2.0 build 41)

    Otherwise, please update your version via app updates... or cloud in respect of aid.

  • Files created with Illustrator CS2 12.0.0 version will be compatible and works with the latest version of Illustrator.  The files are registered as *.ai------.

    I have an older version of Illustrator and you want to upgrade.  My question is: files created with Illustrator CS2 12.0.0 version will be compatible and works with the latest version of Illustrator.  The files are recorded as * .ai?

    That should be no problem.

    Text will be redistributed without doubt if you want to change it.

  • AGGRO identifier (To do Internetbanking) do not work with the latest version of Firefox

    The Edentifier of AGGRO is a small support for my bank account card.
    When I connet it via USB with my computer that I can easily connect to my bank account.

    I called AGGRO one told me there is a problem with the latest version of Firefox.

    So please Mozilla solve this problem for me because all customers aggro in Holland who use Firefox I have this problem and that is many people.

    Thank you

    Henk W. Blankenstein
    Netherlands

    You should still be able to use the E.dentifier normally (i.e. not connected via USB) and enter the code manually.

    See:

    E.dentifier en Firefox versie 22

    Laatste versie van Firefox is niet meer mogelijk om het is een gekoppelde e.dentifier in you loggen in Internet Bankieren. Wilt u use maken van gekoppelde e.dentifier toch? Dan adviseren wij u om staying on stappen op you Chrome of Internet Explorer. Werken aan een Holland en Wij gaan er nu vanuit dat we deze augustus Hotel doorvoeren midden. Eleven excuses voor het ongemak eventual.

  • RealDownloader has stopped working with the upgrade to FireFox 22

    RealDownloader V 1.3.2.28 stopped working with my 'security' was last updated to FireFox. FireFox is now V22

    I have tried to reinstalled realplayer, realdownloader, deactivation / activation addons / plugins

    Can't seem to work - when I smile on a YouTube video for example, the 'Download this video' button of RealDownloader does not appear. Works fine in Internet Explorer

    Hello dmcentee, real is aware of the problem and working on a solution - please refer to https://realnetworks.zendesk.com/entries/23689856-Download-This-Video-option-does-not-appear.

  • "Back" button does not work with the latest version of any help?

    Hi, I use the latest version. When I go through the pages, I can not be able to return to previous pages. The back button does not work. When I click the back button, the same page, it's not coming back... Any help would be much appreciated!

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > appearance/themes).

    You can click right back or front button to open the history list.

    You can hold down the left button of the mouse either back or next to the history tab list opens.

    The current active entry has a bullet in front of it.



    If you place an entry in the historic session with the mouse tab, so you see an arrow to the left pointing (rear) left or right (forward) to show the direction.

    You can left click on an item to open it in the tab active or middle-click or Ctrl, click on an entry in this list to open that link in a new tab, just as you can with the other links.

  • A few arcade games will not work with the latest version of Flash Player

    I played a lot of arcade games to my hobby

    site and some games display the sign, I did not

    have the latest version installed and a link to some games here.and

    appears with black screen and with the humble mouse click

    text "movie not loaded" on the flash about text of player.

    It makes me very frustrated. I need help! Please, I beg you!

    Thank you, doctor, if you mark your thread as answered, this will help other people who might have the same problem

    a much easier solution. They are unable to play arcade games, but many play other games on the internet.

    Thanks again,

    eidnolb

  • Windows Media 32-bit Player has stopped working with the error "failed to run the server.

    Original title: Windows Media Player does not start

    I am running window 8.1 on a HP laptop.  I have the two 32-bit and 64-bit Windows Media Player installed, I can start 64-bit with no problem, but 32 bit work do not.  When I try to play music directly I get the error "Server execution failed", I tried all the option provide fron uninstall and reinstall as has been suggested, but nothing helped.  I need to have the 32-bit to run or have the 64-bit by default. Help!

    Thanks for the reply, but after working with it, I solved the problem.

    1. rename the program (x 86) folder (32-bit) / Windows Media Player for everything you want

    2 copy the Windows Media Player folder in the Program Files (64-bit) folder and paste it into the program file (x 86) folder.

    3. This puts an uncorrupted in the default path, Windows Media Player

    This worked very well for me.  It also leaves a version uncorrupted for future needs.

    Sometimes simple is better.

  • WordPad has stopped working after the latest updates

    After that received several updates this morning, Word Pad stop working. When I open it, I get an error message saying... "unable to create the new document.

    Can someone tell me how to solve this problem? It was working fine just before the updates.

    Please provide a copy of your system information file. Type the system information in the search box above the Start button and press the ENTER key (alternative is select Start, all programs, accessories, System Tools, system information). Select file, Export and give the file a name noting where it is located. Not to place the cursor in the body of the report before exporting the file. The system creates a new information file system each time system information is available. You must allow a minute or two before the file is completely filled before exporting a copy. Please download the file to your OneDrive, to share with everyone and post a link here. Normal mode preferred report. Please say if the report was obtained in safe mode.

    Please download and share with everyone your event to your OneDrive Viewer Application copies of your System and logs and post a link here.

    To access the system, log, select Start, Control Panel, administrative tools, Event Viewer, in the list on the left of the window, expand Windows logs and select System. Place the cursor on the system, select the Action in the Menu and record all events like (the evtx default file type) and give a name to the file. Do the same for the application log. Do not offer not filtered files. Do not place the cursor in the list of reports before selecting the Action from the menu. Do not clear the logs so that you have a persistent problem.

    For assistance OneDrive see paragraph 9.3:
    http://www.gerryscomputertips.co.UK/MicrosoftCommunity1.htm

    General remarks on event viewer
    http://www.gerryscomputertips.co.UK/syserrors5.htm

  • Webcam does not work with the latest version of Connect addin

    I installed the latest adobe connect addin 11.9.976.291 version: but when I run my webcam it works properly, because I can see just 1 image every 2 seconds... If I uninstall the add-in, it works well... Is this a bug in the add-in? is it possible to have the previous version of the add-in?

    Someone has exprerinced the same questions?

    I use Safari and Mac

    I've updated everything

    281 plugin solves the problem.

    ftp://ftp.adobe.com/pub/connect/updaters/meeting/9_0/

    -dave

  • Get any 3rd party plug-ins audio to work with the latest version of PP

    Hi, I posted to this topic before, but still need help.  When I updated to Adobe Premiere Pro 2015.3 CC (from the previous version of PP), all my plug-ins audio disappeared.  When I tried to reload it in PP, I get this message after that it seems to load all plug-ins, and then none of them loaded.  I'm certainly not the only one who had this problem?  Someone suggested repair permissions on my boot drive, I did, and I still get this error in PP.  Literally, I can't do any video work until I have my audio plug-ins back.  If anyone on this forum can help me, contact Adobe directly?  Also, I'm on a Mac Pro (4.1) running Mac OS 10.10.5.

    Thank you!

    Nicholas

    Premiere Pro audio plugin problem.png

    Update: this issue has been resolved by Adobe technical support.

  • SyncToy 2.1 has stopped working, with the message "unable to create the folder pair. Unable to create the provider. Can I get help to fix it please

    After the last automatic update, I tried to back up my files (did this every week for at least one year). Message "unable to create the folder pair. Unable to create the provider"came. I tried again, same. The pair and tried to reset upward. Same message... anyone have an idea how to fix?

    Hi Steve,.

    The question you have posted is related to SyncToy and would be better suited in the SyncFX - SyncToy community. Please visit the link below to find a community that will provide the support you want.
    http://social.Microsoft.com/forums/en-us/SyncToy/threads

    Hope this information helps.

  • When Norton Toolbar works with the latest version of Firefox?

    Toolbar has been disabled when I updated, but I really have trouble using Firefox without it.

    Thank you. The problem itself seems to have solved this morning!

  • ReminderFox works only with the latest version?

    ReminderFox stopped working with the latest version of thunderbird

    Please make sure you use a current version of Reminderfox.
    As it says in the latest version it works with 38 TB.

    https://addons.Mozilla.org/en-us/Thunderbird/addon/ReminderFox/?src=CB-DL-TopRated

Maybe you are looking for