Applescript : how to create a new numbers document
I know you have to use +make new+ command. But how to specify the path and name. I tried +at, properties+ nothing helps.
My code:
*tell application "Numbers"*
* make new sheet at "Macintosh HD:Users:Nimmy" with properties {name:"test"}*
*end tell*
I get an error "Numbers got an error: Can’t make "Macintosh HD:Users:Nimmy" into type location reference". I don't know what should follow (isn't +location specifier+ path to the file?). I would be grateful for anybody who can help.
(a) it seems a bit odd to try to make a sheet before making a document.
(b) I assumes that to make a document the location would be a folder, not a string
(c) to make a document, it would be useful to pass a legal document's name "test" is not one of them.
I tried with
make new document at folder "Macintosh HD:Users:yvan_koenig:Desktop:" with properties {name:"test.numbers"}
This time all seems to be OK but the command failed.
Normal as it was already described.
As far as I know, at this time, to create a document we must rely on GUIscripting.
set myNewDoc to my makeNewDoc("test.numbers", path to documents folder as text)
on makeNewDoc(n, d)
tell application "Numbers" to activate
tell application "System Events" to tell (first process whose title is "Numbers") to tell menu bar 1 to tell menu bar item 3 to tell menu 1 to click menu item 1
(* menu bar item 3 for menu File *)
(* menu item 1 for New *)
tell application "Numbers" to save document 1 as n in file (d & n)
return (d & n) as alias
end makeNewDoc
Yvan KOENIG (from FRANCE samedi 14 février 2009 15:44:20)
Similar Messages
-
How can I create a new Numbers Document through AppleScript?
How can I create a new Numbers Document through AppleScript?
I try this:
tell application "Numbers"
make new document with properties {template name:"blank"}
end tell
But don't work.
Where can I find documentation about it?
ThanksIf you try to invent your own syntax, you are starting on very wrong basis.
The required syntax is defined by the Numbers AppleScript's dictionary.
This one doesn't know what is a template.
This is why, in the link posted by badunit, I use an other scheme to create a new document.
I know that it's awful but it's the only one available at this time.
Yvan KOENIG (VALLAURIS, France) samedi 4 juin 2011 11:25:25
iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.7
Please : Search for questions similar to your own before submitting them to the community
To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer ! -
How To create a new word document and to serve bookmarks
how To create a new word document and to serve bookmarks
there is an example :
http://www.must.de/default.html?Javactpe.htm
howerver ,I don't kown how to use in jsp!! -
How to create a new pdf-document in cfolder
I'm trying to add, via an abap program, a new Pdf-document as a document in the cfolder-environment. Has anyone information on currently available standard Abap-classes/functions that can be used to do this. If possible some code excerpts that clearly show how to do it.
The data to be used to create this PDF is stored in an internal table created by the function module 'CONVERT_OTFSPOOLJOB_2_PDF'.
Edited by: Van Gorp Jan on Oct 25, 2010 3:02 PMWhat is the result of running this code from the console window:
this.setPageBoxes("Media",this.pageNum,this.pageNum,this.getPageBox("Crop",this.pageNum));
this.getPageBox("Media",this.pageNum);
is the new Media Box the same as the Crop? It should be.
Thom Parker
The source for PDF Scripting Info
pdfscripting.com
The Acrobat JavaScript Reference, Use it Early and Often
Then most important JavaScript Development tool in Acrobat
The Console Window (Video tutorial)
The Console Window(article) -
How to password protect a numbers document
I'm trying to figure out how to password protect a numbers document.
My intention is to load this document onto a website, but only want authorized persons with the correct password to be able to access.
Any ideas??
Thanksbscaplan wrote:
I am using Numbers 08
And the Numbers User Guide, supplied with iWork '08, make no mention of password protection, which was introduced in Numbers '09.
Looks like the best option is Wayne's second suggestion—open via File > Print > PDF > Open in Preview, then Save the resulting PDF document with encryption turned on.
An alternate, if you want the recipients to receive a copy of the Numbers '08 file, and to be able to edit that file, you could enclose it in a secure disk image file.
The basic procedure is to:
Use Disk Utility to create a new, blank, sparse disk image, assign a password and save.
Double-click the .dmg file (and enter the password when requested) to mount the disk image on your desktop, then Save a copy of your file to the (open) disk image.
When done, eject the image, and upload the (encrypted) .dmg file to the website.
Detailed instructions may be found in Disk Utility's Help files.
Launch DU (found in the Utilities folder in Applications), click the Help menu and choose Disk Utility help.
Go to the index, scroll to and click Security, then click a title similar to "Protecting confidential documents in a secure disk image." (a search on 'confidential' should also take you to a list containing that title.)
My version of DU is old enough that sparse images hadn't been introduced, or I'd post a copy of the article here.
Regards,
Barry -
How to create a new template for pages in iPad?
How to create a new template for pages in iPad?
In spite of the latest updates Pages for iPad does not support:
1) User templates
2) Headers
3) Footers
4) Page numbers
and it is not compatible with Pages for OSX, a document cannot be edited alternatively on Mac and iPad without destroying headers and footers.
- The Word export is far from perfect
- Does not really support Page Layout mode (you cannot duplicate a page at least)
- Does not have a multi-page overview
- The spelling support of iOS and OSX is at the level of Apple Maps except 4-5 languages.
- It takes a long time until it starts
INSTEAD, according to the latest updates:
- It can do change tracking
- Lock and unlock objects
- Add reflections to shapes
Dear Apple, please understand:
- We like iPad and we wish to use it for real work.
- We wish to have user templates, headers, footers and page numbers.
- We do not expect all the features of Pages for OSX, but we do expect real compatibility.
- We do not wish to switch back to Word for Windows unless you force us.
Please try to concentrate on real development not on unimportant changes like in the latest dissapointing update. -
How to create a new repository in EP 6
I was wondering how to create a new repository in EP 6 SP2 CM. I am farmiliar with using repository managers, but I just want to create a new repository similar to the dfaul repositories that are provided by sap, such as "discussions or documents". The reason is that I want to be able to report "only on the size of this repository"
Thanks
JeremyJeremy -
You can create a CM repository using the following path:
System Administration -> System Configuration -> Knowledge Management -> Configuration -> Content Management -> Repository Managers -> CM Repository
Click on the New button.
Enjoy!
Kyle -
How to create a new partion (to save my files & Folders) in my HP (Compaq LE1902x )PC that has already 4 primary partitions ? when something goes wrong along with OS(C) drive my all files are lost. so i want to create a new partition & dedicate it to my files & folders.
I would consider another problem. What if the hard drive (not the OS) fails. You'd lose all your data, all partitions. It seems better logic would be to copy your files and folders to either an external hard drive or USB thumb drive.
I would not use the internal backup program, but would manually copy the data. I also would not leave such device attached to the computer.
In my system I have a separate USB thumb drive that stored critical medical and legal documents. That way, I can travel with it, as needed. I also clone my primary desktop every 30-45 days. That way, if I get a failure, it's only that far back on lesser files.
I am a volunteer. I am not an HP employee.
To say THANK YOU, press the "thumbs up symbol" to render a KUDO. Please click Accept as Solution, if your problem is solved. You can render both Solution and KUDO.
The Law of Effect states that positive reinforcement increases the probability of a behavior being repeated. (B.F.Skinner). You toss me KUDO and/or Solution, and I perform better.
(2) HP DV7t i7 3160QM 2.3Ghz 8GB
HP m9200t E8400,Win7 Pro 32 bit. 4GB RAM, ASUS 550Ti 2GB, Rosewill 630W. 1T HD SATA 3Gb/s
Custom Asus P8P67, I7-2600k, 16GB RAM, WIN7 Pro 64bit, EVGA GTX660 2GB, 750W OCZ, 1T HD SATA 6Gb/s
Custom Asus P8Z77, I7-3770k, 16GB RAM, WIN7 Pro 64bit, EVGA GTX670 2GB, 750W OCZ, 1T HD SATA 6Gb/s
Both Customs use Rosewill Blackhawk case.
Printer -- HP OfficeJet Pro 8600 Plus -
Error when creating a new numbering series
I have a problem creating a new numbering series
i received the following error
next invalid serial number message 3535-3
i Controlled a period e the sequential numbering of series
For two period the indicator i the same "Standard" for the restaant period is the year
example
2004 Standard
2005 Standard
2006 2006
2007 2007
2010 2010
i controlled the sequent table
OFPR
OPID
NNM1
OACP
ThankHi,
Welcome you post on the forum.
How do you controlled the sequent table ?
Thanks,
Gordon -
Creating a new reports document
Hi everyone,
Iu2019m having an issue using In-Proc RAS when creating a new report document in .NET. The following code (C#) will fail (Saying that it requires a Loaded RPT file to do anything against that member)u2026
CrystalDecisions.CrystalReports.Engine.ReportDocument myTest = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
myTest.ReportClientDocument.New()
How are you suppose to create a new blank document using the CrystalReports engine? The only way I can do anything with the above object is to actually load a .RPT file. Itu2019s different then when using the RAS SDK which goes like:
ReportClientDocument objClientDoc = new ReportClientDocument(); //this is a ReportAppServer object
u2026Set The Report Server Nameu2026
objClientDoc.New();
Thanks for the help!
PeterHi Peter,
If you are using ReportDocument object then you need to load the object with a report name.
//define the object
ReportDocument rdocument = new ReportDocument();
//load the report
rDocument.Load(path of the report);
//View the report
CrystalReportViewer1.ReportSource=rdoc;
However if you use the RAS then you need to use the ReportClient document object for it.
//define the object
CrystalDecisions.CrystalReports.Engine.ReportDocument rdoc1 = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
// assign it to the reportclient object
ISCDReportClientDocument rClient1 = rdoc1.ReportClientDocument;
//Load the report
rdoc1.Load(path of the report);
//View the report.
crystalReportViewer1.ReportSource = rdoc1;
So I do not see any reason why we would need the New() method.
Does that help?
AG. -
Creating a new HTML document - removing "todos"
When creating a new HTML document in a KM repository (i.e. Folder > New > HTML File...), I get a form where I name my HTML document and enter the content etc. I can also choose, from a dropdown box, the document type between a Normal document or a "todos". My questions are the following:
1) What is "todos" in this case? (I don't think it means "To Do's".)
2) As a portal admin, how can I remove "todos" from the dropdown box or disable the dropdown box completely.
Thank youHi Mick,
sorry, quite late, but better than never
> how can I remove "todos" from the dropdown box or
> disable the dropdown box completely.
System Administration - System Configuration - KM - Configuration - CM - Global Services - Resource Types - Delete "todos".
> What is "todos" in this case?
> (I don't think it means "To Do's".)
I think that in fact some SAP developer wanted to mark this place that there would be more work to be done (Resource Types to be defined or so).
Hope it helps
Detlev -
How do I close a numbers document without closing the entire app?
Can anyone tell me how I can close a numbers document without closing the entire app? i.e. go back to the folders display page - is this even possible?
It is not a bug, but a new feature.<br />
Some menu entries in the main menu bar are hidden if you use the mouse and only appear if you use the keyboard to open the menu (Bug 626825).
You can see the difference if you use Alt+F to open the File menu or other menus like the Edit menu (Alt+E) and Bookmarks menu (Alt+B) and compare that to what you see if you use the mouse to open the menu after you have made the menu bar visible by tapping Alt or by pressing F10.
*[https://bugzilla.mozilla.org/show_bug.cgi?id=626825 bug 626825] - Hide redundant menu commands unless the user invokes the menu using the keyboard (make use of the openedWithKey attribute)
''(please do not comment in bug reports; you can vote instead)''
See also:
* [[/questions/799856#answer-155765]] -
How to create a new user account?
Hi,
Could you point me to the document/maunal on
how to create a new user account for OS X 10.4?
I somehow couldn't find that from Apple web site.
And I found one here:
http://www.mcelhearn.com/article.php?story=2004110211244242
and followed the instruction:
# echo 'henry::512:512::0:0:Henry James:/Users/henry:/bin/bash' | sudo niload -v passwd /
but nothing happened. Either this doesn't work with
V10.4 (which I use), or I missed something.
Any pointer would be much apprecaited.
Thanks.
Macbook Pro Mac OS X (10.4)Hi Allan and Simon,
Thanks for your responses.
Sorry I didn't make my question clear. I meant:
"How to create a new user account with command line"?
The GUI (System Preference) would work. But I'd like
to how to do it from command line (just like on Unix).
Any inputs would be appreciated.
Thank you.
Macbook Pro Mac OS X (10.4)
Macbook Pro Mac OS X (10.4) -
How to create a new System Data
Hi guys.
I need to create a new System Data with which to filter a list output using a field derivated from siebel marketing. This data isn't between the standard system data like CampaingCode, SegmentId .....
Now i discover one .XML file (someting like Marketing....xml), in the OracleBIData/web/config directory, in which there are defined all the standard System data like:
<WebExpression>
</WebExpression>
Can I try to modify this file and add a new system data? if the answere is YES, hao i can do this? My real problem is how take a system value, from siebel marketing, to assign at this new systme data.
Thanks in advance
Best reguardsHi
thanks for your solution,
i created a new Data carrier type AC for viewing auto cad files and given the path as, C:\Program Files\AutoCAD 2006\acad.exe"
and at Define serveres and files or folders,
defined the data carrier as Autocad type was default as AC,
at Identify frontend computers i could not enter any thing it is only in display form and no values were there and niether could be entered.
and my datacarrier created is not there to be selected while creating documents.
through CV01N create documents.
i suppose this is because i have already defaulted PC as the data carrier type. default system as my data carrier.
please clarify my Below douts also
as in my configuration i have defined only one Datacarrier ie Default PC, will this do all the need full, or will lead to to any complication in any aspect,
i want to know what is the Advantages of defining many datacarriers or the Limitation of a single Datacarrier.
iam facing a situation where a particular software say PDF reader or AutoCAD, is not installed in all the System. and iam thinking of installing this Software in a particular System or say in the Content Server system.
can this software be made used to view these cad and Pdf files on the front end system where this software is not installed,
Say in a particular PC the software AutoCAD is not installed and if he wants to View the AutoCAD file,
another problem iam facing is
while Creating a New AutoCAD file in my system through DMS Create, it gives a message "Drawing file is not Valid"
while i can create a Word Doc File, but it is not possible to create a new AutoCAD file throuh DMS, (AutoCAD is Installed in my system)
also i have no idea of how to create a New Data carrier type,
what exactly have to be filled in
1, define data carrier type
2, define server and files or folder
3, identify frontend computers
please provide configuration details or if possible screen shot details
points will be awarded for sure.
Thanks and Regards
Sathish -
Why should we create a new sales document type
I want to know the actual reason behind creating new sales document type when the standard document is available
General procedure when setting up sales document types
You have three options for configuring new sales document types:
1. Change an existing sales document type.
2. Copy an existing sales document type and change it according to your requirements.
3. Create a new sales document type.
Recommendation
For small changes, SAP recommends that you copy similar existing sales document types in the standard SAP R/3 System and make the appropriate changes. Small changes might, for example, be, a changed description, a different number range or a different increment for the numbering of items. The name is to start with the letter Z as SAP keeps this range free in the standard system.
This procedure has the following advantages:
All the specifications of the existing sales document type are copied. In particular, the data concerning, for example, partner determination, pricing or document flow which you would otherwise have to edit manually is copied.
You can test your new sales document types in respect to the settings made without having to edit the other settings.
When copying sales document types, item categories and schedule line categories, the SAP R/3 System automatically creates a log with the copied data. Using the log, you can check whether all of the copied data applies to your sales document type or whether you need to make changes.
Actions
1. If you need to make further changes, you should define new sales document types. To do this, you enter an alphanumeric key with a maximum of four characters for a sales document type and a textual description for the key.
2. Maintain the specifications on the detail screen according to your requirements.
Maybe you are looking for
-
A question about 4:3 and 16:9 formats
Hello:) I have finally bought a DV camcorder and therefore try to use the iMovieHD software properly now. What I realized after some filming is that the camcorder was originally set to 16:9, which now gives me a hard time when I try to compress into
-
I have an Apple original cable for connection of iphone to TV. When I play a video I can hear audio from TV but cannot see images. I tried all possible settings on iphone. Anybody with same problem ? thx
-
Blending similar colours into a solid colour?
I've scanned a map (actually a nautical chart) that I want to print; see link below to a very small portion of the RGB 8-bit/Chan image. http://i77.photobucket.com/albums/j54/nigelmercier/sample_zps69cffb91.png~original In this I can identify white,
-
Microsoft Office and MacBook Air
Hello everyone, I have just bought a MacBook Air 13 inches (4GB) and I am about to install Microsoft Office. The problem is I remember that when I installed it on my MacBook Pro, the softwares would run very slowly and would always have bugs. Should
-
MDX YTD until previous month - problem for january
Hello, I have a Time hierarchy YQMD I want to make an MDX calculation that gives me the YTD until the previous month. I did this with formula: I first made a 'normal' ytd calculation resulting in 'MyMeasureYTD' sum (YTD([Time].[Years Quarters Months