Opening a folder with an application in one click, and automating a process

Firstly, is it possible to create a desktop/dock icon (or perhaps a Safari or FireFox bookmark) that opens a folder with a certain application? I'm doing a lot of web development and hoping to create handy buttons for opening up entire folders (Ruby on Rails projects) with only one click. At the moment, I have to find the folder and drag it to the textmate icon; if I had a 'open in textmate' button, that would make my work so much quicker, as I'm often changing between projects. It would be even better if I could have the button as a bookmark in my browser (where I spend most of my time).
Secondly (probably related to the first question), is it possible to automate a process I follow every time I open up a Ruby on Rails project in Terminal (?);
1. Load Terminal by clicking on the icon in the dock
2. 'cd sites/rubyonrailsapp' (where 'rubyonrailsapp' is the rails application I want to load)
3. 'mate .' (opens the entire /rubyonrails/ folder in TextMate)
4. 'CMD + T' (to open up a new Terminal tab)
5. 'gitk --all &' (to open up the Wish version control interface for the rails application)
6. 'autotest' (to runs the tests in the rails application)
7. 'CMD + T' (to open up another new Terminal tab, ready for me to use)
If I could follow those steps with only one click, that would be amazing, so any suggestions are much appreciated (I just realised how many times-per-day I'm typing these commands).
Cheers

Thanks
Here's the new post;
http://discussions.apple.com/thread.jspa?threadID=2070033&tstart=0

Similar Messages

  • Opening a folder with an application in one click, and automating Terminal

    A forum member kindly recommended I move a question from 'Mac OS X Leopard' to this sub-forum as it was more appropriate to Unix:
    Firstly, is it possible to create a desktop/dock icon (or perhaps a Safari or FireFox bookmark) that opens a folder with a certain application? I'm doing a lot of web development and hoping to create handy buttons for opening up entire folders (Ruby on Rails projects) with only one click. At the moment, I have to find the folder and drag it to the textmate icon; if I had a 'open in textmate' button, that would make my work so much quicker, as I'm often changing between projects. It would be even better if I could have the button as a bookmark in my browser (where I spend most of my time).
    Secondly (probably related to the first question), is it possible to automate a process I follow every time I open up a Ruby on Rails project in Terminal (?);
    1. Load Terminal by clicking on the icon in the dock
    2. 'cd sites/rubyonrailsapp' (where 'rubyonrailsapp' is the rails application I want to load)
    3. 'mate .' (opens the entire /rubyonrails/ folder in TextMate)
    4. 'CMD + T' (to open up a new Terminal tab)
    5. 'gitk --all &' (to open up the Wish version control interface for the rails application)
    6. 'autotest' (to runs the tests in the rails application)
    7. 'CMD + T' (to open up another new Terminal tab, ready for me to use)
    If I could follow those steps with only one click, that would be amazing, so any suggestions are much appreciated (I just realised how many times-per-day I'm typing these commands).
    Cheers

    you can try this applescript. just copy it into the Script Editor and save it (1) as a script application that you can double-click, or (2) as a script that you can run from the script menu or quickkeys or etc. may need some tweaking...
    <pre class="jive-pre">tell application "Terminal"
    set cmd to "cd sites/rubyonrailsapp; mate ."
    do script cmd
    activate
    end tell
    tell application "System Events"
    keystroke "t" using command down
    end tell
    tell application "Terminal"
    set cmd to "gitk --all & autotest;"
    do script cmd
    activate
    end tell
    tell application "System Events"
    keystroke "t" using command down
    end tell</pre>
    to solve your other question, you'll probably need to script textmate. something like:
    <pre class="jive-pre">tell application "TextMate"
    open alias "path:to:folder"
    end tell</pre>
    I don't have textmate to test it on, however.
    sorry it's not a unix solution, but the task you're trying to accomplish fits better with applescript.
    Message was edited by: twtwtw - sorry, wrong quote style...

  • I want to open a folder in a separate window by clicking on it.  For some reason when I click on a folder it just replaces the one I was just in.  I want them both to be open at the same time without having to go through several steps.

    I want to open a folder in a separate window by clicking on it.  For some reason when I click on a folder it just replaces the one I was just in.  I want them both to be open at the same time without having to go through several steps. Old apple operating systems made it easy to have several folders open at one time. 

    Eric, thanks that works but seems like an extra added step also to do it that way.  I've got to move and organize a ton of files and I'm looking for a easy way to get this done.  I could also open the folder into a separate tab and then drag the tab out so it becomes an open window but thats a lot of fussing around also with extra steps.  Not sure why these newer operating system seems more confusing and less user friendly than what they used to.  In the past I could just click on any folder and it would open in a separate window making it really easy to copy or move files from one place to the other just by simply dragging them from one window to the other.  Seems like I'm going through several extra steps now to do a simple task. 

  • Firefox 'opens containing folder' with...

    ...Leafpad here, which of course does not always helps /-}
    Arch Linux x86_64, Firefox, i3 window manager. Up to date.
    For an user and two profiles, the Mozilla browser opens "containing folder" with Leafpad (on both profiles). While for the other users Thunar is used.
    Opening directories with a file-manager is desired (slightly more than with leafpad /^o). I most surely overlooked something and would appreciate if someone would see where : }
    Hunting the forum allowed me to try e.g.: FrozenFox's solution, but I couldn't make it work:
    Editing /usr/share/applications/mimeinfo.cache AND ~/.local/share/applications/mimeapps.list
    user1 and user2 mimeapps.list's diff
    - Using perl-file-mimeinfo
    Assigning directories to Thunar as per the Wiki
    $ mimeopen -d [FOLDER]
    I made no change this way.
    - Using xdg-open
    I replaced busking-git with xdg-utils
    $ xdg-mime query inode/directory
    xdg-mime: unknown query type 'inode/directory
    $ xdg-mime default Thunar.desktop inode/directory
    $ xdg-mime query inode/directory
    xdg-mime: unknown query type 'inode/directory' !?
    Even if 'inode/directory=Thunar.desktop' is added to ~/.local/share/applications/mimeapps.list
    Note I get "unknown query type 'inode/directory" on both users' profiles.
    Moved USER1's Firefox's 'mimeTypes.rdf' away, relaunched the browser but the 'opens containing folder with...' issue stands still.

    Awesome
    Thanks for that hint. This solves my problem:
    http://antix.freeforums.org/iceweasel-o … t4016.html
    I add the following line to .local/share/applications/mimeapps.list :
    [Default Applications]
    inode/directory=spacefm.desktop

  • When i use view as list in finder and open a folder with many files i cant right click with mouse without selecting or highlighting a file....i just want to right click to paste an item or create a new folder...what can i do?

    When i use view as list in finder and open a folder with many files i cant right click with mouse without selecting or highlighting a file....i just want to right click to paste an item or create a new folder...what can i do?

    Thx for that im gonna try it....but is there a way to do it without using toolbar or cmd-c...? i mean using only the mouse?why does it have to highlight the file even though i click a bit next to it....?using icon view i can right click next to the folder and i wont have a problem but with list view that i prefer using it will highlight the whole row.....and i dont find free space to right click cause i got many files

  • I often have to open files .cue with Text Edit. Right Click, Open with, Others, Text Edit. Is it possible to put Text Edit in the menu avoiding to use "others"?

    I often have to open files .cue with Text Edit. Right Click, Open with, Others, Text Edit. Is it possible to put Text Edit in the menu avoiding to use "others"?

    The easiest way is to keep Textedit in the Dock and drag the .cue file(s) to the Dock icon.
    You can also create an Automator Service:
    Open Automator
    Select: Service
    Select Service receives selected [files or folders] in [Finder]
    and:
    Then select one or more .cue file, right click (or Control-click) on the selection to display the contextual menu. Scroll to the bottom of the contextual menu and select Services -> (what you named the Service).

  • Expandable lists that expand and collapse with one click and edit in wysiwyg

    I have a lot of text based lists on one page, so I threw them into content editor web parts so i can expand / minimize the lists. However, two clicks (one on the arrow and then one on "restore") is becoming really tiresome. How can I make expandable
    lists that expand and collapse with one click? AND they are still editable from the wysiwyg browser editing tool?
    I have already tried using Jquery to create expandable content, but the problem here is that the content can't be edited in the wysiwyg browser based editor - the expand or collapse button doesn't "work" when you are in the edit mode, so you can never
    see the expandable content to edit. I can change the content in the code but it's no good if my non-coder co-workers can't also edit it.
    I am in 2010.

    I just found the answer myself here: blog (.) pathtosharepoint.com/2008/10/25/expandcollapse-buttons-for-your-web-parts/
    Worked perfectly. Allows open and close of CEWP with one click, and you can still edit their content in the wysiwyg editor.

  • I currently run Mac Pro with three hard drives. Can I dual boot or even triple boot with Snow Leaopard on one drive and Mountain Lion or Lion on others?

    I currently run Mac Pro with three hard drives. Can I dual boot or even triple boot with Snow Leopard on one drive and Mountain Lion or Lion on others?
    I need to keep Snow Leopard so that I can run some old softward.

    If you are careful you can put at least two on one drive, having Recovery from Lion and Mountain Lion on their own drives though.
    CCC can clone Lion Recovery - great for moving or backup.

  • ABAP/4 Open SQL statement with WHERE ... LIKE and pattern too long

    Dear All,
    I am getting an error "ABAP/4 Open SQL statement with WHERE ... LIKE and pattern too long" while executing the following statement:
    CLEAR LS_RANGE.
    LS_RANGE-SIGN     = 'I'
    +LS_RANGE-OPTION     = 'CP'     +
    LS_RANGE-LOW     = 'S_ADMI_FCD'
    LS_RANGE-HIGH     = 'S_ADMI_FCD'
    COLLECT LS_RANGE INTO LT_RANGE.
    SELECT *
               FROM UST12
               INTO CORRESPONDING FIELDS OF TABLE LT_OBJECT_VALUES
               WHERE FIELD IN LT_RANGE
               AND AKTPS   = 'A'.
    For options like BT(Between), EQ(Equal) in range table, this above query is executing without dump. But for option CP, it simply dumps & in dump what i found is, it is concatenating the value in low & high.
    Does anyone have any idea regarding open sql using range tables.
    Thanks,
    Bhupinder

    Hi,
    I commented as follows:
    If  LS_RANGE-HIGH is empty, you can use EQ, NE, GT, LE, LT,CP, and NP. These operators are the same as those that are used for logical expressions. Yet operators CP and NP do not have the full functional scope they have in normal logical expressions. They are only allowed if wildcards ( '*' or '+' ) are used in the input fields. If wildcards are entered on the selection screen, the system automatically uses the operator CP.
    If  LS_RANGE-HIGH  is filled, you can use BT (BeTween) and NB (Not Between). These operators correspond to BETWEEN and NOT BETWEEN that you use when you check if a field belongs to a range. You cannot use wildcard characters.
    You can try:
    CLEAR LS_RANGE.
    LS_RANGE-SIGN = 'I'.
    +LS_RANGE-OPTION = 'CP' +
    LS_RANGE-LOW = 'S_ADMI_FCD'.
    LS_RANGE-HIGH = 'S_ADMI_FCD'.
    FIND '*' IN LS_RANGE.
    IF sy-subrc = 0.
      LS_RANGE-OPTION = 'CP'.
    ELSE.
      LS_RANGE-OPTION = 'EQ'.
    ENDIF.
    COLLECT LS_RANGE INTO LT_RANGE.
    SELECT *
    FROM UST12
    INTO CORRESPONDING FIELDS OF TABLE LT_OBJECT_VALUES
    WHERE FIELD IN LT_RANGE
    AND AKTPS = 'A'.
    If you use wildcards the LS_RANGE  length should not exceed 10 characters.
    Hope this information is help to you.
    Regards,
    José

  • At the top of my IPhone 5s is a small circle with am arrow at one end and padlock in the middle. Anyone know what that relates too?

    At the top of my IPhone 5s is a small circle with at arrow on one end and padlock in the middle. Anyone know what that relates too?

    That would be rotation lock.
    http://support.apple.com/kb/ts3805

  • I was surfing online when suddenly my mac just freeze. So i had forced shut down it and turned it on again but then the folder with questionmark icon shows up. And i pressed (option key) to go to the utility but i cant find my startup disk anywhere!

    I was surfing online when suddenly my mac just freeze. So i had forced shut down it and turned it on again but then the folder with questionmark icon shows up. And i pressed (option key) to go to the utility but i cant find my startup disk anywhere!

    Well, if the internal hard drive  is no longer readable, there's pretty much nothing anyone here can do about it. There are no magic words that will fix a hardware problem.
    Make an appointment at the genius bar and have it looked at.

  • I want to create a form with a manager completing one section and a staff member another. Both sections protected by different passwords.

    I want to create a form with a manager completing one section and a staff member another. Neither should be able to edit the others. Can different sections be password protected by different passwords? I'm thinking there might be an "official use only" function.

    You can use 2 forms in one portfolio.

  • Hi, I have an iMac which I just booted up and have a white screen with a blue folder with a question mark blinking on and off. Any help would be appreciated. Tommy

    Hi, I have an iMac which I just booted up and have a white screen with a blue folder with a question mark blinking on and off. Any help would be appreciated. Tommy

    That means your iMac could not find a system to use for startup.  That may mean the internal hard drive has become faulty, or the hard drive mechanism is fine, but the startup volume ("Macintosh HD" unless you renamed it) may have some type of data corruption that makes it unbootable.
    First, you should try resetting PRAM
    http://support.apple.com/kb/HT1379
    and if that does not help, use this procedure to reset SMC (power management).  If your iMac is from 2008, this is the procedure for Intel (not PowerPC) Macs.
    http://support.apple.com/kb/HT3964
    (This forum category is for "iMac (PPC)," so if this iMac is older (with a PowerPC processor), please post back.)
    Disconnect all peripheral devices.  When you connect it back to power, if you have been using a power strip of some type, try connecting it directly to a wall outlet, by itself (at least initially).  Start up with nothing but the power cord connected, then add only standard mouse and keyboard.  If it works, run it that way for a while. 
    If PRAM and SMC reset have no effect, you should insert your Mac OS X installation disc (for the currently installed system) in the optical drive, and restart with the C key held down.  This should get you to the Installer screen, where you can run Disk Utility from the Utilities menu. 
    In Disk Utility, does the internal hard drive appear in the sidebar?  If so, select Macintosh HD in the sidebar and go to the First Aid tab.  Use Repair Disk.  If an error is found, note if Disk Utility was able to fix it or not.
    You can then quit Disk Utility and attempt to restart normally.

  • Sync with Outlook 07 on one computer and Palm Desktop on another?

    Hi!  Here goes...Can you set up a Palm Centro to sync with one computer with Outlook (07) and another with Palm Desktop?  One computer is at home (Outlook) and the other is my work laptop which does not use Outlook at this point.  I would like to sync regularly with both.  Also....since my work might eventually switch to Outlook - can I change this syncing option at that point and sync with Outlook 03 on one computer and Outlook 07 on another?
    Thanks for all your assitance!
    Post relates to: Centro (Verizon)

    Hello dcusuman and welcome to the Palm forums.
    The answer to your questions is yes.  You can sync your Centro to Microsoft Outlook 2007 on your home PC and then sync to Palm Desktop on your work issued computer.  Later on, if your company switches to Microsoft Outlook 2003, you will be able to use a shortcut in your Palm program group to switch the Palm Desktop PIM conduits to the Outlook conduits.
    I am going to assume that you are going to be using Palm Desktop 6.2 that comes bundled on the Centro software CD.  If you do, there is no reason to download or install the Outlook 2007 conduit update from the Palm website.  That update is intended for the older Palm Desktop 4.x and HotSync Manager 6.x.
    Alan G
    Post relates to: Treo 755p (Sprint)

  • POSDM Diff Between : One Step and Two Step Processing Tasks

    Hi All,
    Can you pl give some points on difference between "One Step and Two Step Processing Tasks in POSDM ??
    Thanks!!

    Please consult the SAP Note 980272 on the service marketplace. It gives a detailed description of the difference.

Maybe you are looking for

  • Send email from excel

    Can anyone help please. I would like to send a range from excel 2011 by email using VBA code. I can do this with Outlook but It fails because of using the Mac Mail Client. Is there any code out there that will send via the mac mail client Regards Gar

  • Colored Pictures Turning Black and White in Certain Files (PSE 9.0)

    Hey guys, how's it going? I'll try to keep this breif, but it may take a little while to explain. I've been getting a problem with PSE 9.0 where an image or layer that is in color suddenly turns black and white when I paste it into an open file. It's

  • Albums and songs

    I got a new computer and transferred most of my songs sucessfully to my new itunes.However, I am still missing quite a few. I have tried extracting my music folder from my ipod, and it is now on my desktop, but I can't seem to get the folder into my

  • Why can't I create a form

    When I convert a document to a PDF I can no longer go into tools and create a form from the PDF?

  • Audio line -in : doesn't seem to be responding

    Hi My audio line-in port doesnt seem to be working any more. Does anyone have any advice to help me trouble shoot this issue. Ive already tried third party recording apps and a new set of mic-headphones but still nothing appears to be coming through.