Jump to content

timmorrisdesign

Member
  • Posts

    12
  • Joined

  • Last visited

timmorrisdesign's Achievements

Helping Hand

Helping Hand (3/5)

0

Reputation

  1. Thanks a ton! Works perfectly for me for Google Bookmarks after I cleaned the quotes out with your workflow.
  2. Thanks! I added another if/else if statement below to get it to work correctly with your last snippet. My final code that worked is: on alfred_script(q) tell application "System Events" set frontApp to the name of the first application process whose frontmost is true if (frontApp is "Microsoft Word") then set continueProcess to true else if (frontApp is "Coda 2") then set continueProcess to true else set continueProcess to false end if end tell if continueProcess then if (frontApp is "Microsoft Word") then tell application "Microsoft Word" to set documentName to path of active document as alias else if (frontApp is "Coda 2") then tell application "Coda 2" to set documentName to file of document 1 as alias end if tell application "Finder" open the container of documentName activate select documentName end tell end if end alfred_script
  3. I tried it out and Coda does have an Applescript dictionary. I tried it with the keywords from the ones listed in the Word one, but "active document" doesn't exist, here is a few of the words that might be in the same field but maybe they need to be presented differently, thoughts? local path: the local path of the site path: the path of the browser item file: Its location on the disk, if it has one. Also does "documentName" stay the same? Shawn, do you have a paypal email address, I would like to give you a little something for helping me out. You can email me your paypal email address to tim@timmorrisdesign.com if you would like.
  4. One more quick request, I am realizing this would be really helpful to be able to do in Coda 2 as well. I tried this another if statement like this but it isn't doing anything with Coda. I put an "else if" statement in with Coda 2 and it still worked in Word, however when I replaced the bottom portion with Coda 2 it didn't work, not sure how I would leave the bottom portion to work with both Word and Coda 2 either. Thoughts? This is what I have right now just to see if I can get Coda 2 doing the exact same thing (open in finder and highlight the file in the directory). Thanks again! on alfred_script(q) tell application "System Events" set frontApp to the name of the first application process whose frontmost is true if (frontApp is "Microsoft Word") then set continueProcess to true else if (frontApp is "Coda 2") then set continueProcess to true else set continueProcess to false end if end tell if continueProcess then tell application "Coda 2" to set documentName to path of active document as alias tell application "Finder" open the container of documentName activate select documentName end tell end if end alfred_script
  5. Ok, I figured it out to put focus on the directory I added and it works tell application "Finder" activate end tell
  6. Hi Shawn, That is correct, it is opening it, but not putting focus on it, any way to change that? Also, I was hoping to have the file highlighted in that directory if possible. Thanks!
  7. Hi Shawn, Thanks a ton, unfortunately it isn't working. I set my hotkey and was in a Word document that has already been saved to a directory and then hit hit my hotkeys and nothing seems to be happening. Thoughts? Thanks, Tim
  8. Sorry if that was unclear. Yes, I want to open the directory in Finder with a HotKey while in Microsoft Word.
  9. Hello, I have found a workflow that enables me to open my home folder in finder with a HotKey here: http://www.alfredforum.com/topic/855-how-to-open-a-folder-path-with-a-hotkey/ However, I want to be able to open whatever Microsoft Word document I am currently in, in Finder. Is there any keyword that opens the current path name that I can put into the text field in the Hotkey Settings? Thanks!
×
×
  • Create New...