Opening numbers3.0 from terminal

I could open numbers 2.3 from terminal by typing 'open <numbers_file>'
In Numbers 3.0, the numbers file is a directory so the open command does not work.
I need to open the numbers file from command line as it's being used in my script. I need to launch the numbers file, and then read it via apple script.
Any help on how I can do this will be appreciated.
Thanks,
Neelay

looks like it works I had the forward slash in the terminal, when i was opening it thats why it did not work earlier.

Similar Messages

  • How To Open Alias File From Terminal

    I am trying to write a script where I can tell it to open an Alias. I mounted a network drive and created an alias so when it is not mounted, I can double click it and it will mount. I need the script to call that alias and mount it. I would just use mount afp command but since our machines are on a Windows domain we run into errors. Anyone know how to call an alias from terminal?

    Did you try
    open path/to/alias

  • Open flash player from terminal

    Hi everyone,
    i have the following problem and it drives me mad. I´m
    developing a Flash game which retrieves data from a java Server.
    For presentation I have both things, the server and the
    Flash-Projektor on the same Computer. What I want is: Both
    programms startet with on click (one doubleclick :-) ) so I tried
    to start the server using fscommand but since the Server is a never
    stopping Thread, Flash blocks and waits for the application to
    end...which will never happen. So my new try is to start the Flash
    projector from tha java server interface via runtime.exec();
    everything I need now is what I have to enter in the Terminal
    (using OSX!) to start a Flash projector. I just can´t figure
    it out.
    Another thing would be: it doesn´t have to be a
    projector...could be normal swf also...then start it with a
    standalone player...but same problem: how do i start a standalone
    player from the terminal giving it the file he should open? Are
    there parameters I can pass to it? Anybody? Help!!!

    The backbone of these online gaming websites is nothing but flash player. As air is necessary for breathing, similarly flash is necessary for these online gaming sites.

  • [SOLVED] Cannot open display: . Problem from Terminal

    Hi,
    I have a small problem with X I guess. I hope you can help me, as extensive googleling did not help.
    I'm just configuring my arch install (newbie). Everything I have configured so far works great, the documentation is really good. I can start my xfce sessions an everything. However, I just wanted to look something up, when
    $ xfce4-about
    printed the following error:
    xfce4-about: Cannot open display: .
    This happened from terminal, not within a xfce-session.
    Does anyone have an idea how I should proceed to eliminate this minor problem?
    Thanks for your help in advance.
    Last edited by jared (2012-02-22 04:38:21)

    Seems you can't run xfce4-about from the non-X terminal, just like you can't run firefox.

  • Opening c file in xcode from terminal

    Hi,
    I know this can be done, I've done it before but can't remember how or where I found it, searches have led nowhere.
    How do I open my c file in xcode from terminal? As in, to open in emacs I type emacs (filename)?
    Cheers

    Try open <filename>.  Unless you have changed the default editor, it should open up in Xcode.  Other option is "open -a Xcode <filename>"

  • Open files from terminal (gnome-open doesn't work properly)

    How can I open files from terminal? On Ubuntu, I used xdg-open. On Arch, I have gnome-open, but I can only open directories with that, not files directly. This sucks bucause I like navigating through my files using the terminal instead of a file manager, which doesn't make that much sense if files can't be opened directly.
    Last edited by cryptkeeper (2012-01-10 14:36:42)

    If you want to see the syntax, here is my defaults.list (so far my Xfce installation hasn't tried to switch over to mimeapps.list):
    [Default Applications]
    audio/x-wav=audacity-usercreated.desktop
    application/x-shockwave-flash=swfdec-player-usercreated.desktop
    application/x-java-jnlp-file=java-web-start-usercreated.desktop
    audio/mpeg=audacity-usercreated.desktop
    application/x-bittorrent=deluge-usercreated.desktop
    application/javascript=medit-usercreated.desktop
    application/rdf+xml=medit-usercreated.desktop
    application/zip=xarchiver-usercreated.desktop
    application/x-compressed-tar=xarchiver-usercreated.desktop
    video/mp4=mplayer-usercreated.desktop;xine-usercreated.desktop
    text/x-agr=gracegtk-usercreated.desktop;grace-usercreated.desktop
    text/html=medit-usercreated.desktop;chromium-usercreated.desktop;firefox-usercreated.desktop
    image/x-xbitmap=mirage-usercreated.desktop;gimp-usercreated.desktop;medit-usercreated.desktop
    application/postscript=evince-usercreated.desktop
    application/x-cbr=evince-usercreated.desktop
    application/vnd.openxmlformats-officedocument.spreadsheetml.sheet=gnumeric-usercreated.desktop;xarchiver-usercreated.desktop
    text/plain=medit-usercreated.desktop
    audio/flac=audacity-usercreated.desktop
    video/x-msvideo=mplayer-usercreated.desktop;xine-usercreated.desktop
    application/x-cbz=evince-usercreated.desktop
    image/gif=mirage-usercreated.desktop;gimp-usercreated.desktop
    application/vnd.ms-powerpoint=impress-usercreated.desktop
    application/x-java-archive=xarchiver-usercreated.desktop
    application/smil=kino-usercreated.desktop
    application/vnd.oasis.opendocument.text=writer-usercreated.desktop
    image/svg+xml=inkscape-usercreated.desktop;medit-usercreated.desktop;mirage-usercreated.desktop
    video/x-flv=mplayer-usercreated.desktop
    application/vnd.ms-excel=gnumeric-usercreated.desktop
    application/vnd.openxmlformats-officedocument.wordprocessingml.document=writer-usercreated.desktop
    application/vnd.oasis.opendocument.spreadsheet=calc-usercreated.desktop
    application/x-gnumeric=gnumeric-usercreated.desktop
    image/png=mirage-usercreated.desktop;gimp-usercreated.desktop
    application/x-audacity-project=audacity-usercreated.desktop
    video/x-ms-wmv=mplayer-usercreated.desktop;xine-usercreated.desktop
    image/jpeg=mirage-usercreated.desktop;gimp-usercreated.desktop
    image/bmp=mirage-usercreated.desktop;gimp-usercreated.desktop
    application/msword=writer-usercreated.desktop;abiword-usercreated.desktop
    video/mpeg=mplayer-usercreated.desktop;xine-usercreated.desktop
    image/x-eps=evince-usercreated.desktop
    application/pdf=epdfview-usercreated.desktop;evince-usercreated.desktop
    application/vnd.oasis.opendocument.presentation=impress-usercreated.desktop
    Obviously you probably have different app preferences than me. And you'll probably have to sed away the "-usercreated" strings because I am anal about having my own desktop file for everything.

  • How can I determine which computer a share is connected to in /Volumes from terminal or a script?

    I run a set of virtual machines via Fusion on an iMac that we run automated tests on for our website.  There is a folder on each VM called /Automation that is shared. 
    I have a python script that runs on the host, that will find an open VM, start it up and then mount the VM's /Automation folder.  So if there is only 1 VM powered on, the folder shows up in /Volumes as /Volumes/Automation.  The  problem is when there are 2 or more VM's powered on, because then the shares start being named /Volumes/Automation-1 and Automation-2 etc.  So my question is, how can I determine which computer each share belongs to from terminal or a script?
    In other words, I'm looking for something like:
    /Volumes/Automation = "FirstVirtualMachineName.local"
    /Volumes/Automation-1 = "SecondVirtualMachineName.local"
    Is there any way to determine which computer a mounted share is connected to?  In the past, I've just unmounted all /Automation folders, and then mounted them in a particular order, but that's unreliable and messy in my opinion.  If anyone knows a better way, please let me know.  Any help is appreciated.
    Thanks,

    Well I think I have a workable solution.  It's not perfect, but I think it will do the trick. I can put a spotlight comment on the folder similar to 'HostName=OSX-Automation-1.local' and can then retrieve that value from our server with the following python snippet:
    import subprocess
    out,err = subprocess.Popen(['osascript','-e','tell application \"Finder\" to get comment of \"Macintosh HD:Volumes:Automation-1\"'],stdout=subprocess.PIPE, stderr=subprocess.PIPE).communciate()
    So I could just loop through each 'Automation*' folder in /Volumes and grab the name from the spotlight attributes on the directories.  I don't think I really need to worry about the comments being overwritten, but I may have one of our launch daemons that run on the VM check that spotlight comment once a minute or something to ensure that the correct value is there.
    If it ends up not working well in practice, I'm going to give your suggestion about a config script a shot.  It would require a little more up front work, but seems as if it would be pretty solid after that. 
    Thanks again for helping me think it through

  • Command to quit an app from Terminal

    When I force quit Final Cut Pro HD, the app still has a black triangle next to it in the dock.
    When I bring up force quit again, the app is still listed.
    What's the command to quit an app from Terminal?

    You can use the killall command to quit a process by name. If this doesn't work, you can also save any open documents and then force quit the loginwindow process from the Activity Monitor.
    (19696)

  • Sending mail from terminal after a script

    I am new to Terminal.
    I created a backup script which runs every morning on my iMac with OS 10.6.6. The script is launched successfully by Launchd from /Library/LaunchDaemons.
    I would like to have the script send me an email once the backup job is done. I saw a few information about commands that can be added at the end of a script, like mail or mailx (for instance mail -s "Mysubject" [email protected] or telnet smtp.gmail.com). I tried to run any of these lines from Terminal without success. I always get some kind of timeout of a sort.
    I believe that I may have to configure my iMac in a way to be able to use these commands but I am not sure how and where to start.
    Also, I am using Google Apps (on top of having also a Gmail.account). Not sure if I have to open some ports to make "mail" work.
    Thanks for any kind of help or hints,
    Lanceloz

    sendEmail works pretty well, but there are a couple of bugs.
    1)
    First of all, the version 1.5.6 by Brandm Zehm (thank you Brandom!) had a bug at the timeout parameter, easily fixable. The following command must have the "Timeout" parameter capitalized, and not lowercase (timeout, as I found). Fix it this way.
    $SERVER = IO::Socket::INET->new( PeerAddr  => $conf{'server'},
                                     PeerPort  => $conf{'port'},
                                     LocalAddr => $conf{'bindaddr'},
                                     Proto     => 'tcp',
                                     Autoflush => 1,
                                     Timeout   => $conf{'alarm'},
    Then I added "-o timeout = 15" to the command line, and e.g. in case of wrong SMTP, the program properly exits at the timeout, after 15 seconds.
    2)
    Another bug I was not able to fix yet (please help) is that in case of wrong port, no mather the timeout, the program hangs up forever. For example I tried to send and email from my gmail account, using the SMTP smtp.gmail.com and the port 465 (which works fine with Entourage) and program hanged up. Using the port 25 everything worked well. I am puzzled. Is anybody who might help us here? Thank you.

  • Access proxy from terminal using proxy auto-config

    I know about using ntlmaps to wrapper my proxy configurations e get access from Terminal, iTerm2, &c exporting http_proxy variable and others. But I don't want go on using this approach because it simply ***** (forgive me for this word...) for a lot of issues.
    I would like simply setup my proxy environment on Network Preferences/Advanced/Automatic Proxy Configuration: (host: http://myproxy/proxy.pac) and using this setup for a whole system, including my terminals. Therefore, are there any way to reach it?
    Another details, my proxy is authenticated and uses ntlm type and in browser I use internet without problems.
    Thanks a lot for any help!
    -Leo

    I am not quite sure what you are looking for. Mac OS X has supported auto proxy configuration since 10.6 Snow Leopard was introduced (acutally in response to a request I made ). If you open System Preferences, click on Network, then go to the Advanced settings for your network interface, in the Proxies tab there is an option called Auto Proxy Discovery. This is different to Automatic Proxy Configuration which was also available in previous versions of OS X. Automatic Proxy Configuration uses a selected PAC file (Proxy Auto Configuration file) but Auto Proxy Discovery uses the WPAD method of finding your proxy server.
    See this article for information about WPAD (Web Proxy Automatic Detection).
    http://en.wikipedia.org/wiki/Web_Proxy_Autodiscovery_Protocol
    WPAD uses either an option advertised from your DHCP server giving the address of your proxy server, or WPAD can use a standard URL based on your domain name to download a dat file containing your proxy server details.
    I have seen reports saying the the DNS method is problematic with Mac OS X but also seen reports that the DHCP method does work with this option successfully. So my suggestion is to define the DHCP option code 252 to advertise your proxy server.
    Note: Thanks to yet another request I made in the past the Mac OS X DHCP Server can be manually configured to define additional DHCP option codes including option 252. The ability to define DHCP option codes was added in Mac OS X 10.5 Server (Leopard).

  • Gatekeeper Open Apps Downloaded from anywhere issue

    Hi,
    I've configured the gatekeeper to open apps downloaded from anywhere, howeverm everytime I open any app downloaded form internet it always asks the Acept/Deny question, it seems like it's bypassing the System Preference Gatekeeper settings.
    What can I check?
    Cheers,

    The database in which Gatekeeper stores its settings may be corrupt. This procedure will reset all Gatekeeper settings to their defaults. Any changes that you made will be reverted, but can be restored from backup if there's no improvement.
    Back up all data.
    If you have more than one user account, you must be logged in as an administrator to carry out these instructions.
    Triple-click anywhere in the line below to select it:
    sudo cp /var/db/.SystemPolicy-default /var/db/SystemPolicy
    Copy the selected text to the Clipboard (command-C).
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window (command-V). You'll be prompted for your login password. Nothing will be displayed when you type it. If you don’t have a login password, you’ll need to set one before you can run the command. You may get a one-time warning not to screw up. Confirm. You don't need to post the warning. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    Quit Terminal, reboot, and test.

  • What funtionality comes from Terminal.app and not bash (or other shells)?

    I am planning to write an alternative terminal program ( --mostly-- for aesthetics sake) and I want to make sure I cover all of the functionality that I want from Terminal.app in my program. What I'd like to know is what functionality is attributable to the Terminal.app program and not the shell it is using.
    Message was edited by: Camden Jared Narzt

    You should find the ANSI Terminal Escape Sequence standard, which evolved out of the Digital Equipment Corporation VT100 line of terminals. Getting the escape sequences implemented correctly is the hard task.
    Roughly speaking, the Terminal handles displaying the characters from the process(s) and sending keyboard characters (again based on ANSI standard) to the process(s)).
    The Terminal also handles text selection, copy and paste.
    The Terminal may also send mouse movement and click information (optional).
    You could start with an existing terminal emulator, such as the open source project iTerm <http://iterm.sf.net>, or just contribute to the iTerm project.
    There are also X11 based terminal emulators such as xterm, rxvt, etc... where the source code is available.
    As with all open source code bases, if you start with that code, you are most likely obligated to make your source code available as well, unless you only use the resulting terminal emulator for your own use.
    I do NOT know where the official ANSI standard can be found, but this is from the DTTERM Common Desktop Environment man page
    <http://www.helsinki.fi/atk/unix/decmanuals/DOC_51/HTML/MAN/MAN5/0200___.HTM>
    and will give you a flavor for the kind of stuff you will need to implement.
    As for what bash implements, start by reading "man bash", then read man sh, man ksh, man tcsh, man zsh, and you will start to get a favor for what a shell does.
    For the most part the terminal displays the text and sends keyboard input. The shell runs programs, and command line editing, command line recall, etc... A lot of the commands that are run by the shell are just separate programs of their own, so they are not part of the shell.
    Message was edited by: BobHarris

  • Open and read from text file into a text box for Windows Store

    I wish to open and read from a text file into a text box in C# for the Windows Store using VS Express 2012 for Windows 8.
    Can anyone point me to sample code and tutorials specifically for Windows Store using C#.
    Is it possible to add a Text file in Windows Store. This option only seems to be available in Visual C#.
    Thanks
    Wendel

    This is a simple sample for Read/Load Text file from IsolateStorage and Read file from InstalledLocation (this folder only can be read)
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using Windows.Storage;
    using System.IO;
    namespace TextFileDemo
    public class TextFileHelper
    async public static Task<bool> SaveTextFileToIsolateStorageAsync(string filename, string data)
    byte[] fileBytes = System.Text.Encoding.UTF8.GetBytes(data);
    StorageFolder local = Windows.Storage.ApplicationData.Current.LocalFolder;
    var file = await local.CreateFileAsync(filename, CreationCollisionOption.ReplaceExisting);
    try
    using (var s = await file.OpenStreamForWriteAsync())
    s.Write(fileBytes, 0, fileBytes.Length);
    return true;
    catch
    return false;
    async public static Task<string> LoadTextFileFormIsolateStorageAsync(string filename)
    StorageFolder local = Windows.Storage.ApplicationData.Current.LocalFolder;
    string returnvalue = string.Empty;
    try
    var file = await local.OpenStreamForReadAsync(filename);
    using (StreamReader streamReader = new StreamReader(file))
    returnvalue = streamReader.ReadToEnd();
    catch (Exception ex)
    // do somthing when exception
    return returnvalue;
    async public static Task<string> LoadTextFileFormInstalledLocationAsync(string filename)
    StorageFolder local = Windows.ApplicationModel.Package.Current.InstalledLocation;
    string returnvalue = string.Empty;
    try
    var file = await local.OpenStreamForReadAsync(filename);
    using (StreamReader streamReader = new StreamReader(file))
    returnvalue = streamReader.ReadToEnd();
    catch (Exception ex)
    // do somthing when exception
    return returnvalue;
    show how to use it as below
    async private void Button_Click(object sender, RoutedEventArgs e)
    string txt =await TextFileHelper.LoadTextFileFormInstalledLocationAsync("TextFile1.txt");
    Debug.WriteLine(txt);
    在現實生活中,你和誰在一起的確很重要,甚至能改變你的成長軌跡,決定你的人生成敗。 和什麼樣的人在一起,就會有什麼樣的人生。 和勤奮的人在一起,你不會懶惰; 和積極的人在一起,你不會消沈; 與智者同行,你會不同凡響; 與高人為伍,你能登上巔峰。

  • Migrate all Open Sales Orders From Legacy System (SAP) To SAP System using

    Hi Experts,
                 I've to Migrate all Open Sales Orders From Legacy System (SAP) To SAP System using Business Objects with a new SALES ORDER DOCUMENT NUMBER referencing the older one.
               I'll get all the required data with field in an excel file.
                 Does any standard transaction exist for it ? Or how to go ahead with it ?
    Thanks and regards,
    Jyoti Shankar

    Hi
    If you are checking for CREATE option then Sales Doc Type
    For more Info goto SWO1 transaction -> BUS2032 --> DIsplay --> Execute --> There SELECT the method which you want to perform... There you can fine the MANDATORY parameters also....
    Or in DISPLAY mode PLACE Cursor on the Required Method and CLick the PARAMETERS button on toolbar...
    That will show the MANDATORY parameters...
    Reward if helpful....
    Message was edited by:
            Enter the Dragon

  • Uploading open sales orders from sap

    hi all,
    i need to upload open sales orders from legacy to sap. pls advice what steps need to be followed for the same.
    1) how we will we download open sales order from legacy and where..... is it to some flat file or some other option is  there . pls tell some options.
    2) how we will uload the sales ordes into sap . thru lsmw or is there some other option ?
    3)  there will be more number of fields in sap than in legacy. i think we need to manully create an excel file and add more fields manually in excel file so that the compulsonry feilds as per sap are present in sap ?
    4) how will availability check happen  in sap after sales order are t/f from legacy ?
    rgds
    pamela

    hi pamela,
    1.a. you need to down load in EXCEL in legact format and convert the same in LSMW format and upload it
    2.a. LSMW - Functionally, BDC, BAPI - Technically. to my knowledge LSMW is better option.
    3.a. first you download to EXCEL file from LEGACY, then align the same to SAP format you can add those fields that are mandatory as per your requriment.
    4.a.You are uploading sales orders in SAP which are showing OPEN status from LEGACY before you uploading the sales orders MM consultant would have uploaded its stock through 561 - dont worry on that, even though if stock is not uploaded also not an issue it will confirm at the later date.
    5.a. we have used LSMW process for our PREVIOUS ASSIGNMENT, before that we tested BAPI for it some how it was not capturing some fields.
    hope all your queries are solved
    balajia

Maybe you are looking for

  • Apple TV Recall without Applecare

    Hello, I have a 3rd Generation Apple TV with a serial number and wifi connectivity problems that match the current replacement program.  However, I do not have applecare protection, and I'm over 100 miles from the nearest Apple Store.  Does anyone kn

  • Install RAC ASM on AIX

    I'm trying to find a cook book on how to install RAC ASM on AIX using VIO and HA?

  • New scenario-sales doc. bolck

    Hi all. I got a scenario. A new sales doc. is created. In this doc. some provisions shouldbe there which will not allow to create a new sales doc. unless it is not given authorised by the concerned person. Just like In sales doc. type, we have one op

  • Pages changes the page size when exporting to pdf

    When exporting a pages document (size 8.5w x 7.0h) to pdf it changes the size to (8.5w x 11.0h) any suggestions on exporting it correctly. If not is there a way to resize it once it is a pdf or other software to convert it correctly? I am using Pages

  • I factory reset my ipod how do i install it now

    i deleted everything from;i pod but now how do i restore settings with oringinal apps