Can apple mail be used from the command line?

Can the Mac Mail application be used from the OSX command line?  Has anyone installed
a command-line, Linux-like mail application to run on OSX?

I don't know about the Mail app, but have you tried installing and configuring postfix? Here is a link to a blog with some details for a postfix solution.

Similar Messages

  • How can I start System Preferences from the command line?

    Hello All,
    I have an issue I'm not quite sure how to solve. I have been tasked within my business environment  with tightening security on a Mac Leopard system and I've been granted Admin Rights to do this on a temporary basis.
    The problem is as follows:
    1) The original Sys Admin that set up this system is gone, no longer available.
    2) He was a Dvorak Keyboard fan and set up the system for a Dvorak Keyboard.
    3) The system actually has a standard Apple keyboard and is marked accordingly, i.e., qwerty (Most Users in the building have stopped using this system altogether - a terrible waste of a good system - even though some of their apps can be run normally (US style qwerty settings). The command line is useless, as is texteditor.app and a few others unless you know Dvorak layout)
    5) When I open System Preferences, the Dvorak keyboard checkbox is grayed out and I cannot change it. There is no lock at the bottom of that particular screen for me to unlock.
    6) Even though I select the US Keyboard at Login, and some apps work accordingly (like MatLab for example) the terminal is borderline useless. I spent over 2 hrs yesterday doing what should have been able to be done in about 30 minutes. I estimate a frustrating and mistake prone additional 8 to 10 hours to do what is normally a a 4 hour job at the command-line.
    7) I do not have the time or desire to re-mark all the keys on the keyboard, particularly since it is not my call to do so, nor do I have the time to re-learn Dvorak touch-typing, and finally I do not want to re-load the entire system. I just want to change the darn keyboard to a standard qwerty keyboard that is somewhat useful in a terminal environment with vi, command line, etc. It's either that or I go mildly insane
    This is frustrating as all get-out. The new Admin logged in and was able to uncheck his Dvorak settings (he is not a UNIX guy, nor is he comfortable om Macs), and we were hoping this was a system wide setting, but No. We re-booted the system, I logged in, still Dvorak, and the checkbox was still grayed out.
    So I figure, short of re-loading the entre system and all the applications necesary, I can either start the Systems Preferences GUI using sudo and hopefully that will change system-wide settings, or I can delete the .AppleSetupDone file and resetup the system (if the keyboard settings are part of the setup) without spending a couple of days reloading everything and re-setting up users, networks, etc.
    Needless to say, I am hoping for the easiest and quickest solution to this extremely frustrating and  aggravating problem.
    Thanks.

    For my situation the following C# code does the job:
        Process.Start(
           @"c:\Program Files\National Instruments\CVI71\cvi.exe",
           @"c:\temp\experiment.c" );
    The file must already exist.

  • Running a function from a powershell script from the command line

    Rather than creating several scripts each with one function, I have one script with has several functions.... I would like to call the script and select the function i want to use from the command line.
    so far, if i change directory to that of the script i can call the function by doing this:
    cd c:\myscripts
    . .\mytestscript.ps1; myfunction
    this works fine.... i have also tried, what I would like to achieve is calling it like this
    c:\myscripts\mytestscript.ps1; myfunction
    however, i am trying to run this as part of an MDT task sequence, my command line looks like this and using the ; myfunction at the end doesn't work.
    powershell.exe -ExecutionPolicy Bypass %SCRIPTROOT%\CustomScripts\mytestscript.ps1; myfunction
    how can i adapt my command line so that it will successfully call the function within my script?
    thanks
    Steve

    Rename the file from ps1 to psm1 and create a powershell module that contain multiple functions. A module will autoload like the built-in modules.
    Placement of the psm1 file is important for Powershell to find and autoload it.
    The file name and folder name must be the same, for example MyModule.psm1 should be in the folder:
    user\documents\windowspowershell\modules\mymodule
    Windows PowerShell Modules
    http://msdn.microsoft.com/en-us/library/dd878324(v=vs.85).aspx
    PS C:\> get-childItem env:PSModulePath
    Name Value
    PSModulePath C:\Users\User\Documents\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules\

  • "Policytool" can not be invoked from the command line

    Hello Everyone. I tried to use Policytool to generate a java policy file, however I can not start it from the command line. Could somebody here let me know it there is any trick there? Thanks in advance!
    Kuilian

    try this
    java -Djava.security.policy=<"your policy file"> <your file to run>
    srikanth.n

  • How can I package an HTML5 panel from the command line?

    I am able to use the Eclipse Extension Builder plugin to export a ZXP file, but for our build process we will need to do this from the command line.  Is this possible?

    Edit: Adobe has fixed the links and the downloads are now available.
    The links to the Windows downloads do not seem to be active anymore.  Is there somewhere else we can get these?
    http://labs.adobe.com/downloads/extensionbuilder3.html

  • How can I print the test page with the Arabic type from the command line

    Hi,
    I have been trying to make the tool for printing the test page from the command line on the Arabic OS. I used "rundll32 printui dll printuientry" with "/k /n" options. My tool is to print the test page in all OS when pushing the
    button.
    Normally, in the Arabic Windows, the test page is printed with RTL type when printing the test page in the "Devices and Printers". But in my tool, the test page is printed with LTR type. I'm confused because of this result.
    Is it possilbe to print the test page with RTL type when using the "rundll32 printui dll printuientry"? If it is possible, could anyone give me the hint or information for resolving?
    Please check for me.

    Hello,
    Thank you for your post.
    Your issue is out of support range of Test Tools in Visual Studio 2010 and 2012 forum which discusses Visual Studio Test issues.
    I am moving your question to the moderator forum ("Where is the forum for..?"). The owner of the forum will direct you to a right forum.
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How I can set my default browser mozilla firefox from the command line in Windows 7?

    I need to set my default browser mozilla firefox from the command line, ie without using the GUI.

    '''-setDefaultBrowser''' is the correct command - you need the two capital letters.
    Why Firefox 17.0.1? You would be missing a number of important security updates. Firefox 17.0.'''9''' is the current ESR release version.

  • Can't send files to Trash from the command line

    Hello,
    as I'm programming in JAVA I must do all "special" operations as from the command line.
    I found several solutions but they don't work for me, at least not in Mavericks.
    I tried:
    osascript -e "tell app \"Finder\" to delete POSIX file \"/Users/me/totrash\""
    I got:
    21:60: execution error: Finder got an error: Handler can’t handle objects of this class. (-10010)
    I tried:
    echo "tell application \"Finder\" move POSIX file \"/Users/me/totrash\" to trash end tell | osascript
    I got:
    26:30: syntax error: Expected end of line but found command name. (-2741)
    Is there any working AppleScript way to send a file to the Trash Bin?
    Thanks in advance.
    ;JOOP!

    Near ....... I did not misspell 'me', I was in a different directory after all my experimenting .....
    Curse those who write cryptic error messages ...
    Bless those who still get it.
    So, thanks.
    ;JOOP!

  • How do shutdown the weblogic server from the command line prompt using web logic 8.1

    I%u2019m currently using weblogic 6.1, but I will upgrade to weblogic 8.1. In weblogic 6.1, the following statements will shutdown the weblogic instance from the command line:
    java weblogic.Admin -url t3://hostname:port -username system -password abc SHUTDOWN
    How do I shutdown the weblogic server from the command line prompt using web logic 8.1.
    Any help will be greatly appreciated.
    Maria

    Maria <[email protected]> wrote:
    How do I shutdown the weblogic server from the
    command line prompt using weblogic 8.1?Greetings Maria! Use this document, located here:
    http://edocs.bea.com/wls/docs81/admin_ref/cli.html#1131733
    Hope this helps...
    Brian J. Mitchell
    Systems Administrator, TRX
    email: [email protected]
    office: +1 404 327 7238
    mobile: +1 678 283 6530

  • I used to beable to push firefox with sccm using setup.exe from the command line , this no longer works i want to be able to have a silent install run for all,

    In the past I have always created a deployment with sccm and installed firefox.exe with the /s switch from the command line what is the new switch for silent installation ?

    hello, have you tried it with the full installers that are available at https://www.mozilla.org/firefox/all yet?

  • Is there a way to switch between workspaces in Spaces from the command line?  I want to write a script to set up certain applications in certain workspaces (without having to do it manually each time)...

    Is there a way to switch between workspaces in Spaces from the comnand line?  I use several workspaces from Spaces, each workspace having a certain number of fixed applications running.  Rather than set all this up each time I log on, I'd like to write a script from the command line (I use gawk) to automate this. Currently I have a gawk script that, given a directory, opens a few xterms whose working directory is the given directory, and opens "preview" applied to a certain file in that directory.  However, at present I have to manually move an xterm through each workspace and run my gawk script in each workspace (applied to each directory that I'm working on).
    There must be a better way...

    Addendum: Can this be done via:   open -a Spaces --args xxx  , where xxx is some set of arguments (or something like this)?

  • Run javascript (not in a jsx file) from the command line extendscript

    Hi all,
    I was wondering if anyone knew how to run javascript from the command line in Extendscript (meaning Extendscript would be the target application). I know about the -run command line flag in which allows you to run a .jsx script from the command line but what I'm looking for similar syntax to run a script directly without needing to put it in a file. For example I have tried (obviously unsuccessfully):
    C:\Program Files (x86)\Adobe\Adobe ExtendScript Toolkit CC\ExtendScript Toolkit.exe -run "alert('Hello World');"
    Thanks!

    You might be looking for something like this: javascript - Is it possible to execute JSX scripts from outside ExtendScript? - Stack Overflow
    Although that one is about executing JSX files, the solutions given (Applescript as well as COM/VBScript) can be adapted to simply run a javascript code snippet rather than JSX file because the solutions simply call the Adobe app's Applescript/COM API to "execute javascript" (actually execute ExtendScript technically), and in the solution, they using includes to pull in the JSX file. You'd simply replace the include with actual javascript code snippet inserted in.
    Though this would then require you to run a VBScript, Applescript, or other script (that calls the COM/Applescript API) rather than the ESTK command line option.

  • Accessing Runtime Mbeans from the command line.

    Hi,
    I just wanted to know if runtime Mbeans can be invoked from the command line.
    I tried accessing the ExecuteQueueRuntime mbean from the command line but nothing ever comes back.I am able to retrieve configuration mbeans without errors.
    Do I need to create the runtime mbeans before I can use them ?
    Or I need to invoke these commands via server code only?
    Thanks.

    Can you post the command you are using? I just tried this and seems to work.
    D:\>java weblogic.Admin -username weblogic -password weblogic get -type ExecuteQueueRuntime -pretty
    MBeanName: "mydomain:Location=myserver,Name=weblogic.admin.RMI,ServerRuntime=myserver,Type=ExecuteQueueRuntime"
    CachingDisabled: true
    ExecuteThreadCurrentIdleCount: 2
    ExecuteThreadTotalCount: 3
    ExecuteThreads: [Lweblogic.management.runtime.ExecuteThread;@3eb934
    Name: weblogic.admin.RMI
    ObjectName: weblogic.admin.RMI
    Parent: myserver
    PendingRequestCurrentCount: 0
    PendingRequestOldestTime: 1129990444704
    Registered: false
    ServicedRequestTotalCount: 87
    Type: ExecuteQueueRuntime
    MBeanName: "mydomain:Location=myserver,Name=weblogic.kernel.System,ServerRuntime=myserver,Type=ExecuteQueueRuntime"
    CachingDisabled: true
    ExecuteThreadCurrentIdleCount: 5
    ExecuteThreadTotalCount: 5
    ExecuteThreads: [Lweblogic.management.runtime.ExecuteThread;@2cfc8c
    Name: weblogic.kernel.System
    ObjectName: weblogic.kernel.System
    Parent: myserver
    PendingRequestCurrentCount: 0
    PendingRequestOldestTime: 1129990444754
    Registered: false
    ServicedRequestTotalCount: 124
    Type: ExecuteQueueRuntime
    MBeanName: "mydomain:Location=myserver,Name=weblogic.kernel.Non-Blocking,ServerRuntime=myserver,Type=ExecuteQueueRuntime"
    CachingDisabled: true
    ExecuteThreadCurrentIdleCount: 0
    ExecuteThreadTotalCount: 0
    ExecuteThreads: [Lweblogic.management.runtime.ExecuteThread;@2d125d
    Name: weblogic.kernel.Non-Blocking
    ObjectName: weblogic.kernel.Non-Blocking
    Parent: myserver
    PendingRequestCurrentCount: 0
    PendingRequestOldestTime: 1129990444764
    Registered: false
    ServicedRequestTotalCount: 0
    Type: ExecuteQueueRuntime
    MBeanName: "mydomain:Location=myserver,Name=weblogic.admin.HTTP,ServerRuntime=myserver,Type=ExecuteQueueRuntime"
    CachingDisabled: true
    ExecuteThreadCurrentIdleCount: 2
    ExecuteThreadTotalCount: 2
    ExecuteThreads: [Lweblogic.management.runtime.ExecuteThread;@2d260e
    Name: weblogic.admin.HTTP
    ObjectName: weblogic.admin.HTTP
    Parent: myserver
    PendingRequestCurrentCount: 0
    PendingRequestOldestTime: 1129990444814
    Registered: false
    ServicedRequestTotalCount: 0
    Type: ExecuteQueueRuntime
    MBeanName: "mydomain:Location=myserver,Name=weblogic.kernel.Default,ServerRuntime=myserver,Type=ExecuteQueueRuntime"
    CachingDisabled: true
    ExecuteThreadCurrentIdleCount: 15
    ExecuteThreadTotalCount: 15
    ExecuteThreads: [Lweblogic.management.runtime.ExecuteThread;@2d3a8c
    Name: weblogic.kernel.Default
    ObjectName: weblogic.kernel.Default
    Parent: myserver
    PendingRequestCurrentCount: 0
    PendingRequestOldestTime: 1129990444854
    Registered: false
    ServicedRequestTotalCount: 7
    Type: ExecuteQueueRuntime
    D:\>
    Thanks,
    -satya
    BEA Blog: http://dev2dev.bea.com/blog/sghattu/

  • Get GPS location from the command line

    Is there a utility to get the current GPS location from the command line?  A quick search says `geo` will do it, but that appears to come with the android dev tools, which I'd rather not install right now.  The reason I want to do this is to avoid hard-coding my coordinates in a call to `redshift`.

    enduser wrote:
    Hmm.. `gpspipe` gives me:
    gpspipe: could not connect to gpsd localhost:2947, Unknown error -6(-6)
    And `gpsd` gives me:
    gpsd:ERROR: can't run with neither control socket nor devices
    Do I need to be root for these applications? Alternatively, could I maybe just grab the timezone from /etc/localtime and use that? (though I guess that doesn't get close enough on longitude...)
    You have to start gpsd from systemctl.  And you can plug/unplug gps devices at will, so it can be enabled in systemctl whether or not an actual gps is always available.

  • Hot Deploying Servlets from the command line

    Is it possible to hot deploy a servlet from the command line?
              

    Use the mbocutil command line tool located in:
    server root/bin/msg/admin/bin
    You can create a folder with spaces by using quotes like thus:
    ./mboxutil -c "user/Tuser/Test Folder"
    -Chris

Maybe you are looking for