Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Input "data" to a specific numbers doc / month sheet-

I would like to run an apple script. get a popup (which is done already) and take that value and add it to a specific numbers document and create a sheet name by "year / month and add the data to the first row and cell. And to the next cell to add the current date that it has been added.


and if I run the script again. add the new "datas" to a row below.


visual example:


User uploaded file


so popup input. 60 then autoadd current date to second column. and the 60 to the first one which I inputted.

and if I add a new input then add it to the next row etc. And when It's a new month create a new sheet with year/ month name


Please help 🙂


I'm new to this.


Thank you!!!

numbers app, apple script-OTHER, OS X El Capitan (10.11), apple script help

Posted on Oct 13, 2015 7:27 AM

Reply
35 replies

Oct 29, 2015 2:13 AM in response to SGIII

OMG! You are a genius!!!


Thank you so much!!!! 😊😎


I would like to ask which shall I use to "save and quit" the current document?


shall I use this? set minimized of window 1 to true

set m

or this somehow? I don't want to see it the document, I would be great if it would run "computer way" in the background, if possible. 🙂


User uploaded file

Oct 29, 2015 12:41 PM in response to okaypol

Not sure why you're getting that (it doesn't happen on my machine). A guess is that AppleScript is acting too quickly for your computer, telling it to close the document before autosave has done its deed. To test this you could try putting a delay before the quit statement, so that you have this before the end tell.



delay 2


quittgtDoc



Then, if that works, try 1 instead of 2 to reduce the pause.


SG

Oct 29, 2015 1:21 PM in response to SGIII

The same thing as if it's not there. the same image pops up as wroten.


By the way I found this code. looks like it's working. "
close document 1 with saving" I have no idea why this works before the last end tell.


Does this work for you too, SG?


Can I automatically make a new checklist in the same numbers document by month? like separate sheets for each month.

Oct 29, 2015 6:25 PM in response to t quinn

t quinn wrote:


Hi SG,


Always like to see your scripts.


quinn


Thanks, quinn. I think upgrading to El Cap on my machine broke the javascript bookmarklet that formats AppleScript for posting here; in any case, it's not working. I would like to reinstall it but can't find the thread you pointed out. Would you mind providing the link again? Thanks!


SG

Input "data" to a specific numbers doc / month sheet-

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.