AppleScript open and save file with Numbers

Hi all,
I need to save an Excel .xls file as an .xls file in order to break the links that are included in the original Excel file. Since Numbers doesn't have any actions for Automator, I hoped someone could help me writing an AppleScript?
It needs to open (Numbers) and all the .xls files that are added to a specific folder on my Mac, then save them to another folder as .xls (not .xlsx) and overwrite any existing files with same name. Since this all should work automatically, warnings and pop-ups that need a user to click an option are not allowed.
Didn't think this could be too hard, but I'm just a noob when it comes to AppleScript. Help?
Thanks in advance

Check the attributes of the <textarea> tag. You can use wrap="no" or wrap="virtual" or wrap="hard" to define how the text area handles carriage returns.
Brian

Similar Messages

  • With my new macbook I attempted to open an older spreadsheet and get the following error message:  "This spreadsheet cannot be opened because ti is too old.  To open it, save it with numbers '09 first"  So how does one do this when I only have ver3.1?

    With my new macbook I attempted to open an older spreadsheet and get the following error message:  "This spreadsheet cannot be opened because ti is too old.  To open it, save it with numbers '09 first"  So how does one do this when I only have ver3.1?

    Numbers 3.x can only open Numbers '09 and later.  You will need Numbers '09 to open Numbers '08 files.
    If it is a single file (or only a few) you can email me and I will open and convert then email back.  My email address is in the "Biography" of my profile.
    You may have Numbers '09 installed.  Look in the folder "/Applications/iWork '09"  if Numbers is in that folder launch it, open the file you tried to open, and save.  Then you should be able to open in Numbers 3.x

  • Popup with open and save file option

    Hi,
    I have created a button on my page name as "Export File" and created a process and called on "EXPORT FILE" button. I am using utl file in this procedure and i want to download this file and file will be .ics file using for calendar.
    My page process code is
    begin
    pro_create_ical(:P6_START_DATE,:P6_END_DATE);
    end;when i click on export file button it should raise a popup with open and save file option.
    How i can do this?
    Thanks & Regards
    Vedant
    Edited by: Vedant on Jan 25, 2013 1:59 AM
    Edited by: Vedant on Jan 25, 2013 2:00 AM
    Edited by: Vedant on Jan 25, 2013 3:49 AM

    Shiv,
    Have you installed any new Software/Spyware/Virus Scanner etc.Check it out.It might have caused the issue for last 5 days.
    This issue is fixed in Latest Support Package Versions.
    Which Version of Support Package you are using?
    If EP6 <SP19 you will face this issue.
    Just upgrade it to EP6, Support Pack-19,this will be resolved.
    Upgrade of Support Pack wont take much time.you can get the document under http://service.sap.com/instguides
    Hope it helps
    Regards,
    Karthick Eswaran
    *Reward Points for helpful answers.

  • I can't open or save file with Java Web Start

    Hi,
    i can't open or save file with Java Web Start:
    import java.io.*;
    import java.util.*;
    public class MetaDataFileCreator {
    public String fileNameSpace = null;
    public String fileName = null;
    protected Properties file = null;
    public MetaDataFileCreator(String fileNameSpace, String fileName) {
    this.fileNameSpace = fileNameSpace;
    this.fileName = fileName;
    public void createMetaDataFile() {
    try {
    System.out.println("file METADATA");
    ClassLoader cl = this.getClass().getClassLoader();
    String nameFileMetaData = fileNameSpace + fileName + ".txt";
    FileOutputStream fileOS = new FileOutputStream(cl.getResource(nameFileMetaData).getFile());
    file = new Properties();
    file.setProperty("aaaaa", "aaaa");
    file.store(fileOS, "");
    fileOS.close();
    } catch (Exception e) {
    System.out.println("Error writing metadata-file: " + e);
    System.exit(1);
    e.printStackTrace();
    I have try also to open a file like this:
    ClassLoader cl = this.getClass().getClassLoader();
    file.load(cl.getResourceAsStream(nameFile));
    also like this:
    try {
    fos = (FileOpenService)ServiceManager.lookup("javax.jnlp.FileOpenService");
    fss = (FileSaveService)ServiceManager.lookup("javax.jnlp.FileSaveService");
    } catch (UnavailableServiceException e) {
    fss = null;
    fos = null;
    System.out.println("Error with JNLP");
    System.exit(1);
    if (fss != null && fos != null) {
    try {
    // get a FileContents object to work with from the
    // FileOpenService
    FileContents fc = fos.openFileDialog(null, null);
    //FileContents newfc2 = fss.saveAsFileDialog(null, null, fc);
    // get the OutputStream and write the file back out
    if (fc.canWrite()) {
    // don't append
    os = fc.getOutputStream(false);
    } catch (Exception e) {
    e.printStackTrace();
    also like this:
    File f = new File((System.getProperty("user.home")+"x.txt").toString());
    FileOutputStream fileX = new FileOutputStream(f);
    OutputX = new PrintWriter(new BufferedWriter(new OutputStreamWriter(fileX, "UTF8")));
    OutputX.println(....
    but it doesn't work with Java Web Start.
    Can someone help me?
    How can I open or save file?
    thank you.
    Sebastiano

    Did you specify <all-permissions/> in your JNLP file? Did you sign your code? What error are you getting?

  • How to open and save file like the Notepad Demo do?

    I am a newer to Java Web Start. I found that in the Notepad Demo, when user try to open or save file, a message box appear and give the user some security suggestions.
    In my application, I used a JFileChooser and set the <security> element to <j2ee-application-client-permissions/> in the jnlp file. But the application will thow an exception:
    access denied (java.io.FilePermission C:\Documents and Settings\Administrator\desktop\Java Web Start.lnk read)
    Can someone tell me how to solve this problem. By the way, where can I find the source of the Notepad Demo. I want my application to open and save file just like the Notepad Demo do.

    The Notpad demo uses the JNLP api to read and write files. The api doc can be found at:
    http://java.sun.com/products/javawebstart/docs/javadoc/index.html
    Although the Notpad demo source is not available, there is other sample code available at:
    http://developer.java.sun.com/developer/releases/javawebstart/
    Included here is the webpad demo, which uses the FileOpenService and
    FileSaveService API's.

  • [svn:fx-trunk] 7661: Change from charset=iso-8859-1" to charset=utf-8" and save file with utf-8 encoding.

    Revision: 7661
    Author:   [email protected]
    Date:     2009-06-08 17:50:12 -0700 (Mon, 08 Jun 2009)
    Log Message:
    Change from charset=iso-8859-1" to charset=utf-8" and save file with utf-8 encoding.
    QA Notes:
    Doc Notes:
    Bugs: SDK-21636
    Reviewers: Corey
    Ticket Links:
        http://bugs.adobe.com/jira/browse/iso-8859
        http://bugs.adobe.com/jira/browse/utf-8
        http://bugs.adobe.com/jira/browse/utf-8
        http://bugs.adobe.com/jira/browse/SDK-21636
    Modified Paths:
        flex/sdk/trunk/templates/swfobject/index.template.html

    same problem here with wl8.1
    have you sold it and if yes, how?
    thanks

  • How to Open and Save files

    I have a problem to open and save the files.here is my code. can anyone help me to open the files.
    public void actionPerformed(ActionEvent e) {
    if ("open".equals(e.getActionCommand())) {
    FileDialog fdopen=new FileDialog(this, "Load File", FileDialog.LOAD);
    fdopen.show();
    Thanks for ur time

    Hi fbnmir or who ever can answer my question,
    My problem is similar to the code you wrote. I'm trying to make (or rather complete a half done) editor for text files. For opening and saving files I have so far:
    public void actionPerformed(ActionEvent ae){
    FileDialog filedialog;
    final SearchDialog searchDialog;
    String arg = (String)ae.getActionCommand();
    // the Open ... case
    if(arg.equals(Editor.fileLabels[0])){ 
    if(Editor.VERBOSE)
    System.err.println(Editor.fileLabels[0] +
                        " has been selected");
    filedialog = new FileDialog(editor, "Open File Dialog", FileDialog.LOAD);
    filedialog.show();
    if(Editor.VERBOSE){  
    System.err.println("Exited filedialog.setVisible(true);");
    System.err.println("Open file = " + filedialog.getFile());
    System.err.println("Open directory = " + filedialog.getDirectory());
    //the Save ... case
    if(arg.equals(Editor.fileLabels[1])){ 
    if(Editor.VERBOSE)
    System.err.println(Editor.fileLabels[1] + " has been selected");
    filedialog = new FileDialog(editor, "Save File Dialog", FileDialog.SAVE);
    filedialog.show();
    if(Editor.VERBOSE){ 
    System.err.println("Exited filedialog.setVisible(true);");
    System.err.println("Save file = " + filedialog.getFile());
    System.err.println("Save directory = " + filedialog.getDirectory());
    These are two components of a MenuHandler class. The problem with this code is that in the text editor window, even if the Open button is pressed the file I want to open isn't displayed. Although the System.err (I think that's what it is called) says:
    Open ... has been selected
    Exited filedialog.setVisible(true);
    Open file = tutorial_01.rtf
    Open directory = C:\dhruba\epgy_2006\tutorial\
    Save ... has been selected
    Exited filedialog.setVisible(true);
    Save file = test.txt
    Save directory = C:\dhruba\epgy_2006\tutorial\
    How can I actually display the file I want to open, or save some text I've written?
    I would appreciate any help, thanks.

  • PS CC - Performance, open and save files

    Hi guys,
    I am working on multi-gigabyte files 4-10gb, but say a 5gb file takes me approx 75 seconds to open... it only use 4 core's and 10gb of ram.
    Saving is so sloow - same size files, now I haven't timed it but it takes time... IMHO it takes too much time considering the hardware.
    system contains 20 SSD's
    8x Samsung 830 Raid-0 for startup disk (Areca 1882ix-24 4GB cache)
    6x Intel 520 Scratch disk in Raid-0 IBM M1015 controller
    6x Intel 520 storage disk in Raid-0 IBM M1015 controller
    I have played with various configurations
    48GB of ram
    2x XEON X5650 at stock speed 2.66Ghz - but it can go to 4.2Ghz
    Windows 7 x64
    am I expecting too much?
    thanks
    Henrik

    Hi fbnmir or who ever can answer my question,
    My problem is similar to the code you wrote. I'm trying to make (or rather complete a half done) editor for text files. For opening and saving files I have so far:
    public void actionPerformed(ActionEvent ae){
    FileDialog filedialog;
    final SearchDialog searchDialog;
    String arg = (String)ae.getActionCommand();
    // the Open ... case
    if(arg.equals(Editor.fileLabels[0])){ 
    if(Editor.VERBOSE)
    System.err.println(Editor.fileLabels[0] +
                        " has been selected");
    filedialog = new FileDialog(editor, "Open File Dialog", FileDialog.LOAD);
    filedialog.show();
    if(Editor.VERBOSE){  
    System.err.println("Exited filedialog.setVisible(true);");
    System.err.println("Open file = " + filedialog.getFile());
    System.err.println("Open directory = " + filedialog.getDirectory());
    //the Save ... case
    if(arg.equals(Editor.fileLabels[1])){ 
    if(Editor.VERBOSE)
    System.err.println(Editor.fileLabels[1] + " has been selected");
    filedialog = new FileDialog(editor, "Save File Dialog", FileDialog.SAVE);
    filedialog.show();
    if(Editor.VERBOSE){ 
    System.err.println("Exited filedialog.setVisible(true);");
    System.err.println("Save file = " + filedialog.getFile());
    System.err.println("Save directory = " + filedialog.getDirectory());
    These are two components of a MenuHandler class. The problem with this code is that in the text editor window, even if the Open button is pressed the file I want to open isn't displayed. Although the System.err (I think that's what it is called) says:
    Open ... has been selected
    Exited filedialog.setVisible(true);
    Open file = tutorial_01.rtf
    Open directory = C:\dhruba\epgy_2006\tutorial\
    Save ... has been selected
    Exited filedialog.setVisible(true);
    Save file = test.txt
    Save directory = C:\dhruba\epgy_2006\tutorial\
    How can I actually display the file I want to open, or save some text I've written?
    I would appreciate any help, thanks.

  • HOW TO OPEN AND SAVE FILES TO/FOR MS-WORD 2007 .docx format

    MS-Office 2007 will open .docx files as well as .doc files. Apple's Pages '08 can OPEN MS Word 2007 documents with the new file format ".docx". Pages '08 can not save as ".docx" files, just ".doc" files, but since MS Office 2007 can open these ".doc" without a problem, you should be covered.
    Here is how.
    To open: Just double click the file and Apple's Pages '08 will import the file and open it for you to use and modify.
    To save and use at your work or school's Windows MS Word 2007: When you are done and ready to save the file, go to FILE in the menu bar in Pages '08 and select EXPORT. Then pick the icon DOC WORD and click NEXT. Then in the SAVE AS box, give it a name and tell where you want to save your file to. Click EXPORT. Export is like Save, as it will now save the file where you told it to save it to. Remember you can use the same name, or give it a new name. Thats it. EASY.
    It will save the file in a Windows Word format of ".doc" that MS Word 2007 can open and use.
    Hope this helps people.
    -Apple //GS

    Why yes. How did you know that I saw the way, the truth and the light?
    I just had so many people ask me how to do this, that I thought I might share it with as many people as I could and help the masses To bad that Apple just did not have it as a simple "Save As:" Maybe in the next update.
    -Apple //GS

  • Illustrator CC is taking a very long time to open and save files.

    I am using a Mac with the Mavericks OS. Illustrator can take up to FIVE MINUTES to open or save a file. It is becoming a waste of time as I have to work on multiple projects a day. I read about "Adobe Drive" but have not found this option on the version of Illustrator that I have.
    Please help!

    Any update?
    I found this discussion: http://forums.adobe.com/message/5839180 but have been unable to locate Adobe Drive on my system.
    I have followed the above suggestions with no avail. I have only been opening files from my desktop. This issue is only with Illustrator, Photoshop works fine.
    I ran a script yesterday that opens up eps files and saves them as a png, and what normally takes around 30 seconds took almost 45 minutes. I need to solve this problem asap.
    Would uninstalling and reinstalling the CC suite be of any benifit?

  • Slow to open and save files

    My Macbook Pro with Mac OS X 10.7.4 has been real slow lately in opening files, saving documents, opening webpages.  Any suggestions on ways to speed things up?  I often have MS Excel and Word and Outlook open so not sure if that is the problem.

    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins* and log in as Guest. For instructions, launch the System Preferences application, select Help from the menu bar, and enter “Set up a guest account” (without the quotes) in the search box. Don't use the Safari-only Guest login created by Find My Mac.
    While logged in as Guest, you won’t have access to any of your personal files or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem(s)?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    *Note: If you’ve activated “Find My Mac” or FileVault in Mac OS X 10.7 or later, then you can’t enable the Guest account. The Guest login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode* and log in to the account with the problem. The instructions provided by Apple are as follows:
    Be sure your Mac is shut down.
    Press the power button.
    Immediately after you hear the startup tone, hold the Shift key. The Shift key should be held as soon as possible after the startup tone, but not before the tone.
    Release the Shift key when you see the gray Apple icon and the progress indicator (looks like a spinning gear).
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including wireless networking on certain Macs.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    *Note: If FileVault is enabled under Mac OS X 10.7 or later, or if a firmware password is set, you can’t boot in safe mode.
    Test while in safe mode. Same problem(s)?
    After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of steps 1 and 2.

  • Word 2013 shows full UNC path instead of local "Documents" folder on file Open and Save

    Normally Word (and Excel) by default will show the user's local "Documents" folder when opening or saving a file. That is what we want. However, after using Windows Server Folder Redirection to redirect the Documents folder to the network (Windows
    Server 2012R2), Word now shows the full UNC path to the network share.
    Instead of seeing:
    "MyPC  Documents"
    users see
    \\sever1\redirect$\username\documents
    Folder redirection is supposed to be transparent to the user. Virtually all our other applications, including Office 2003, respect this convention and continue to show "Documents". As you can see, Word even exposes a hidden share.
    Even if we go to File / Options / Save and browse to the local Documents folder as the place Word should open and save files from, Word immediately removes the path you have browsed to, and replaces it with the UNC path.
    Is there a way to suppress this behavior? Thanx!
    Dana

    Hi,
    Based on my understanding, you only want others to see some part of path name, rather than full UNC path name. It is right?
    It seems that we can’t implement your requirement. When we open a file from “My Pictures”, it shows “My picture” instead of showing the full path “C:\Users\User\Pictures”. “My Picture” is set as a library in Windows, so it hides
    full path by design. We can't set \\sever1\redirect$\username\documents as a library.
    As a workaround, you can upload these files to OneDrive and share link to others.
    If I have anything misunderstood, don't hesitate to tell me.
    Regards,
    Greta Ge
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • How to repear a corrupt file with Numbers

    How to open a "corrupt" file with Numbers.
    With excel it is possible to open such a file with the following error message :
    "The file you are trying to open, 'filename.xls', is in a different format than specified by the file extension. Verify that the file is not corrupted and is from a trusted source before opening the file. Do you want to open the file now?"
    Clicking YES, the file is opening correctly with XLS.
    How to do the same with Numbers?
    When i try to open the same file with numbers i have no "error message" but the information contained in the file is not readable.
    Many thanks for your help

    Yeah that's true to an extant; microsoft did a good job fixing that but unfortunately allowed it to be re-introduced in 2006 with windows vista where they allowed file naming to receive destructive values (wasn't very fond of this);
    in previous versions of windows such values once entered would be followed by an error message telling you those values couldn't be used
    I wasn't aware it would pop its ugly head back up into windows 7 but I see otherwise as in the case of mine
    (I forgot to mention the period preceded a parenthesis which in turn can be destructive to the file's original format)
    Anyway photoshop wont open the file after changing it to .psd leaving an error message stating....
    'Could not complete your request because the file is not compatible with this version of photoshop'

  • Slow open and save with psb files Photoshop CC

    Here is my system info:
    Mac Pro Early 2009
    Processor  2.66 GHz Quad-Core Intel Xeon
    Memory  32 GB 1066 MHz DDR3 ECC
    Graphics  ATI Radeon HD 5770 1024 MB
    Software  OS X 10.8.4 (12E55)
    Running Photoshop off an SSD 220GB as my bootdisk , and then my scratches are two 1TB Western Digi Caviar Blacks, both at about 60% full, running Big and flat in PS CC prefs,
    Running Photoshop CC 14.0.0
    I'm having very slow open and save times for psb files ranging in size from 2GB to 6GB - slow meaning 5-6 mins
    Does anyone have any suggestions to improve this time?

    I've noticed the same thing with .tif files. It's taking a good minitue or more to save a 15 meg .tif. Very annoying. I opened PS4 and converted the same .jpg to a .tif and saved it in the same location and it took about 4 seconds. Something is totally jacked with saving files in CC.
    Checked the compression settings and the are the same in both. Not a big fan of CC everything is slower. I pay monthly now to work slower?!? May have to go back to CS4.

  • Files in all programs slow to open and save with Snow Leopard

    Installed Snow Leopard, now all files in all programs super slow to open and save - Photoshop, Illustrator, Quark -- all now at least 4-5X slower to open files and save -- here's what I've tried so far:
    repaired permissions
    emptied font cache - restarted up in safe mode
    re installed Snow Leopard
    renamed old preferences and restarted to create new prefs
    I'm hating Snow Leopard -- eeesh -- this is no upgrade, just a big waste of time and money, any ideas?

    See:
    Mac Maintenance Quick Assist,
    Mac OS X speed FAQ,
    Speeding up Macs,
    Macintosh OS X Routine Maintenance
    Essential Mac Maintenance: Get set up,
    Essential Mac Maintenance: Rev up your routines,
    Maintaining OS X, and
    Myths of required versus not required maintenance for Mac OS X for information.

Maybe you are looking for

  • Packing at Delivery level

    Hi Experts, I have created delivery for two line items.Now I click PACK on delivery document and it directed me to packing page with HU's and Packing materials.On the bottom we have two line Items. Can u please help me how to proceed with packing fro

  • .XMP files no longer appear as sidecars--how to clear metadata?

    Photoshop CS2 ver 9.0.2 Bridge ver 1.0.4.6 ACR ver 3.7 eMac G4 800 MHz Mac OS X ver 10.4.9 1 Meg RAM 12 GB available disk space Bridge and Photoshop are set to save metadata in .XMP sidecar files, but sidecar files no longer appear. That is, up till

  • Problem with BAPI_GOODSMVT_CREATE and MAA

    Hi experts,    I'm trying to GR a PO with MAA (Multiple Account Assingment) by using BAPI_GOODSMVT_CREATE.    My problem is that, as is a return delivery,  BAPI is checking wether the reference doc, position and year have been populated for the MAA r

  • Why do the latest versions of Indesign and Photoshop not work on my computer?

    I own a Toshiba Satellite L675 and when I was using photoshop cs5 extended it worked fine. However I recently purchased Photoshop cs6 extended and after trying to install it i recieved an error:213:10. After that i tried downloading Indesign CS6 to s

  • Lookup into XML file in Lookup Transformation

    Hi, I am wondering if it is possible to do a lookup transformation where the source is an XML file, if so, what are the steps? thanks in advance paburgos