Opening terminal in applescript changes input to Japanese

When I try to use Applescript to open terminal, it opens it but changes the input language to Japanese, so anything that I attempt to feed into terminal via applescript turns into nonsense Japanese.
The default language is English
How do i stop this?
Thanks

You might also want to ask in the Applescript forum:
http://discussions.apple.com/forum.jspa?forumID=724

Similar Messages

  • Opening terminal with applescript - changes default input language....

    When I try to use Applescript to open terminal, it opens it but changes the input language to Japanese, so anything that I attempt to feed into terminal via applescript turns into nonsense Japanese. (The default language is English and kotoeri is set to romaji/roman alphabet by default)
    How do i stop this?
    Thanks

    Since my snow leopard MBP can't handle smb mounts, I've resorted to using sharity, except that its gui crashes the instant I try to mount a drive. But I can mount samba shares using sharity from the command line. I'd like to have it mount on startup which is supposedly something sharity can accomplish from its gui but since that doesn't work I would like to write an applescript and add it to the login items. I haven't been able mount it using do shell script as the sharity command line, unlike the normal samba mount command) doesn't seem to have an option of entering the password, so the mount fails:
    sharity mount smb://user@address/folder
    I thought if I open terminal via applescipt, then have it 'type' the command followed by a delay, then type the password, I could get around it but when I open terminal in applescipt, it starts in Japanese:
    activate application terminal
    tell application "System Events" to keystroke "sharity mount smb://user@address/folder"
    tell application "System Events" to keystroke return
    delay 2
    tell application "System Events" to keystroke "password"
    delay 2
    tell application "Terminal"
    quit
    end tell
    This almost does what I want it to but the input language has flipped to Japanese and sharityもうんtsmb://Sトラゲ-0165/けいthぱっすぉrd
    is the result
    Basically its all because of the samba bug in snow leopard (which I reported to apple and they confirmed its the same issue they know about)

  • No nautilus-open-terminal in Arch64??

    The nautilus-open-terminal package is listed as being in the community repo, but it doesn't seem to be in the Arch64 community repo... shouldn't this one be easy?
    Also, where can one see what's in Arch64 repos?
    ~B

    i'm sure hte x64 and x32 repos are not exactly in sync so it may takea lil while for them to match each other ....
    i use both systems, keep them both up to date and some pkg's in x64 are more up to date, i.e nautilus 2.18.2 in x64 while nautilus 2.18.1 in x32 and both systems have the same configs .. repos: testing,unstable, etc.
    i don't know about nautilus -open terminal, because i changed the pkgbuild to work with the new /usr layout so i suggest you do the same and not live without a great little nautilus plugin any longer

  • How can I use automator to open terminal change directory run a python script?

    Hi all,
    I dont really ever use automator - which may be my big problem - and I am trying to make an apllication that seems fairly simple in theroy. I want something that will lunch terminal, cd to the place where my python script lives and then run it. I have tried a number of suggested ways and can get the terminal to open and the directory to change but cant figure out how to run the script. This is my workflow if i did it manually each time
    - open terminal
    - type cd "the place where my file lives"
    - type python uploadr.py -d
    I can get terminal to open then cd to the right place but cant get the "python uploadr.py -d" to run without an error.
    any help would be very appricated
    thanks!!!
    J

    this is the script I got closest with - I know its something to do with breaking those two commands up but i just dont know how to do it
    on run {input, parameters}
              tell application "Terminal"
      activate
                        if (the (count of the window) = 0) or ¬
                                  (the busy of window 1 = true) then
                                  tell application "System Events"
      keystroke "n" using command down
                                  end tell
                        end if
                        do script "cd /Users/behole/Desktop/FlickrUpload/" & "python uploadr.py -d" in window 1
              end tell
              return input
    end run
    this is the error I get in terminal after I run it
    Last login: Mon Jul 23 15:37:17 on ttys000
    be-holes-MacBook-Pro:~ behole$ cd /Users/behole/Desktop/FlickrUpload/python uploadr.py -d
    -bash: cd: /Users/behole/Desktop/FlickrUpload/python: No such file or directory
    be-holes-MacBook-Pro:~ behole$

  • ICal failing to run applescripts: The 'Open' button does not change to 'Run', and the script file is opened but not executed on alert.

    iCal failing to run applescripts: The 'Open' button does not change to 'Run', and the script file is opened but not executed.

    Calendar (not called iCal anymore) does not include that capability any longer, apparently.  What you have to do now is go to Automator and create a Calendar Alert action.  You can add a Run AppleScript object to the action and paste in your script there, then when you save it, it will become available as a choice in the alert menu in Calendar.

  • Japanese characters alone are not passing correctly (passing like ??? or some unreadable characters) to Adobe application when we create input variable as XML data type. The same solution works fine if we change input variable data type to document type a

    Dear Team,
    Japanese characters alone are not passing correctly (passing like ??? or some unreadable characters) to Adobe application when we create input variable as XML data type. The same solution works fine if we change input variable data type to document type. Could you please do needful. Thank you

    Hello,
    most recent patches for IGS and kernel installed. Now it works.

  • Trying to open Terminal I get;You are not authorised to run this application. The administrator has set your shell to an illegal value.

    Hi There Y'all,
    I have recently downloaded MacKeeper. It ran OK for a bit, but has recently stopped allowing Internet security updates and switching on of the internet protection options.
    Asked for help at MacKeeper. Their initial advice did not work, so a very nice technician was going to remotely attempt to fix the issue.
    He however needed/still needs access to Terminal, a to me unbeknown Utility feature of my MacBook pro with Mac OS X 10.6.8.
    While attempting to open Terminal the following came up
    You are not authorised to run this application.
    The administrator has set your shell to an illegal value.
    Did do a diskverify permission and repair and restart.
    Did check my admin settings in advanced options and have the /bin/bash.
    Any advice anyone.
    Thanks.
    in site out

    After finally localing private/etc/shells through Go>Go to folder and replacing the empty shells with the shells~orig I have permission again to open Terminal. Thanks. Another step.
    (Why though can't I access  /private/etc/...  through Finder's search?)
    Should work but the file or folder needs to exists to access it.  If you typed in /private/etc/shells and the file wasn't there there's no place to access.  Certainly /private/etc was there so that would have worked.
    So what will happen by inputting the lines
    ls -Fvl /bin/bash
    ls -Fvl /etc/shells
    more /etc/shells
    into Terminal?
    Basically to find out what you already seemed to find out.  The first command was to display owner, group, and permissions of  /bin/bash and to tell me whether it still existed.
    Similarly for /etc/shells.
    And the last command would have just displayed what was in /etc/shells.
    By the way /private/etc and /etc are the same folder.

  • Bash script "open terminal and launch command

    I need a script to do this:
    launch a terminal, from this change working directory and then launch a command; the terminal have to remain opened after the command execution.
    Something like:
    $terminal cd $dir && $command
    If I open a terminal and I do:
    cd $dir && $command
    it works
    If I do a .sh script with this:
    xterm -hold -e cd $dir && $command
    or
    terminal -H -x cd $dir && $command
    when I launch it (the script) it doesn't work.
    Last edited by buntolo (2012-01-05 23:44:52)

    karol wrote:
    xterm -hold -e "cd ~/test/ && ls"
    works too.
    I don't know what $command do you mean, but this will list th ~/test directory.
    It works also for me.
    With urxvt and xfce4-terminal don't work.
    But xterm is too minimalist, is there an advanced terminal based on it?
    And I don't unerstand why it doesn't work for xfce4-terminal but for it does for xterm...
    man xfce4-terminal:
    -H, --hold
    Causes the terminal to be kept around after the child command has terminated
    -e, --command=command
    Execute command inside the terminal
    man xterm:
    -hold
    Turn on the hold resource, i.e., xterm will not immediately destroy its window when the shell command completes. It will wait until you use the window manager to destroy/kill the window, or if you use the menu entries that send a signal, e.g., HUP or KILL.
    -e program [ arguments ... ]
    This option specifies the program (and its command line arguments) to be run in the xterm window. It also sets the window title and icon name to be the basename of the program being executed if neither -T nor -n are given on the command line. This must be the last option on the command line.
    What the ...?
    Is only my opinion that there aren't differences between:
    terminal -H -e "cd $dir && $command"
    and
    xterm -hold -e "cd $dir && $command"
    Last edited by buntolo (2012-01-06 13:11:58)

  • E72 - Change Input Language Shortcut

    Hi All,
    Is there any shortcut to change input language through the keypad insted of getting into the differnt manue levels?
    Regards,
    wmomran.
    Solved!
    Go to Solution.

    I had the same problem but found the solutaion by chance.
    1. On the lowest row of keys push the second one on the left (arrow upward). It is "Shift" if I am not mistaken.
    2. Immidiately after press nearest key to the right "Sym" (not simulteneously)
    Window with languages should pop up.
    Those who have had experience with E-71 know, that this function is available when you have opened a new sms or e-mail. But it does not work in an ordinary waiting mode.
    Regards,
    Alexander
    Message Edited by Esugei on 22-Nov-2009 11:08 AM

  • Nautilus-open-terminal to open xfterm4 instead of xterm

    I have installed in nautilus and nautilus-open-terminal in xfce4 on Arch. It opens xterm which does not have good font and appearance. How can I change the setup so that xfterm4 opens rather than xterm. I have tried arch wiki and google and though there are some posts but no clear solution. I can adjust the xterm font but it lasts only for one session. Any help will be appreciated.

    I am not sure if I have been able to define the problem clearly. The 'nautilus-open-terminal' package adds to nautilus a menu item (under File) 'open in terminal' which opens a terminal in the folder being viewed in nautilus (rather than opening a terminal from launcher, which will be opened in the home folder). However, the terminal being opened is xterm and I want to change it to xfterm4. How can I manage this? Thanks for your help.

  • [Awesome WM] Quickly openig console programms without opening terminal

    I want to QUICKLY open console programms which are meant to be ran in terminal, for example - vim or ranger.
    Right now to launch them, I do the following:
    Mod4+Enter (opens terminal)
    Type in command + Enter
    I hate that I do have to open terminal. I want to take a shortcut. One possibility would be to:
    Mod4+r (opens default launcher widget)
    Type in "terminator -e ranger" (opens my terminator terminal whith "ranger" command executed)
    Problem with this is that there's a lot of complicated typing in widget. What would be the best way to launch these programms quickly?

    to start frequently used applications, console or otherwise, i prefer keyboard shortcuts, which you can define in your rc.lua file. another option woud be to use a menu: either the built-in right-click menu (can also be modified in rc.lua), or the new (since 3.4 or 3.5, not sure) menubar that pops up under the top panel when you hit a shortcut key. the last one i dont' like and keep disabled, so no personal experience with that. the other two options i use and modify often, due to changing applications & habits. if you're not familiar with lua, editing the config file (~/.config/awesome/rc.lua) will take some figuring out, but for this use-case at least it isn't difficult.

  • Xcode 4 - AppleScript - User Input

    I have just started playing with Xcode 4, and started a AppleScript project.
    I have wrote a quick piece of code that refreshes a webpage every five seconds, and I want to put it into a .app for my friend who wants to use it.
    Here's my code
    script AppDelegate
    property parent : class "NSObject"
        on clickedme_(sender)
            repeat
                delay 5
                tell application "safari"
                    open location "(website url / user input wanted here)"
                    end tell
                end repeat
        end clickedme_
              on applicationWillFinishLaunching_(aNotification)
      -- Insert code here to initialize your application before any files are opened
              end applicationWillFinishLaunching_
              on applicationShouldTerminate_(sender)
      -- Insert code here to do any housekeeping before your application quits
                        return current application's NSTerminateNow
              end applicationShouldTerminate_
    end script
    Where it is highlighted in my script, I would like to know if I could possibly get a user to copy/paste a URL into a text box, and then they can click a button which refreshes that page.
    So on the left of my UI, I want the user input text box, and then the button on the right which executes the script with the user input where it's highlighted.
    Thanks!

    Create an outlet property and connect it to your text field, after which you can use various methods of the NSTextField class and its parents (such as NSControl's stringValue to get its value).  Note that you really shouldn't use the delay command, since that will block your user interface - better would be to use NSObject's performSelector:withObject:afterDelay: or perhaps a repeating timer.

  • My mail wont open. I even changed my cel phone and still won't open

    My mail app won't open. I even changed phone and still the same

    Reset the page zoom on pages that cause problems.
    *<b>View > Zoom > Reset</b> (Ctrl+0 (zero); Cmd+0 on Mac)
    *http://kb.mozillazine.org/Zoom_text_of_web_pages

  • I can't use my password to open icloud. I changed my apple password and it still won't work with icloud

    I can't use my apple password to open icloud.  I changed my apple password and still can't open icloud on my pc. What can I do or what am I doing wrong.
    Thanks

    Sorry to ask but... are you absolutely certain you have entered your Apple ID and account password correctly?
    If you use the same Apple ID for iCloud and the iTunes store, see if you are able to log into the iTunes store from either your computer or your iPod.

  • List View : Opening folder in folder changes modified date in list view

    Since my office upgraded me to 10.5.4, when I flip open a folder in List View, then flip open a sub-folder, the modified date in the original folder changes to now. Opening subsequent folders again changes the modified date of the folder above it. I do not remember this happening in Tiger, and since part of my job involves finding and archiving old files, this is driving me crazy. Can I stop it?
    Jeff Work

    That's interesting, and probably why the original poster had the same issue, but it does not work that way for me with Leopard 10.5.5.
    In list view, the .DS_Store does not get updated when I flip down the folder. The .DS_Store file only gets updated if I open the folder in icon view. That makes sense because the .DS_Store file stores the relative position of the icons in the window.
    However, when I go back to list view, even though the .DS_Store file is updated to the current data and time, the Date Modified of the parent folder does not change.
    This different may be caused by some setting you are using in Finder that most people do not use, or maybe because of some other Mac OS X feature such as File Vault (which I do not use), or maybe some third party software that modifies Finder functionality. I don't know...

Maybe you are looking for