Jump to content

harringg

Member
  • Posts

    12
  • Joined

  • Last visited

Posts posted by harringg

  1. I've modified the following script in DTPO and as written, I select files in DTPO, run the Alfred Keyword to Applescript workflow I made using the following code.  It then auto fills a pop-up box with "archive-", but I still have to press Enter.

     

    Is there a way to press "enter" using Alfred so it's a simple invoke Alfred, type my keyword (using the default text I've added to the script) and have the files all rename with no more user interaction? 

    -- Add Prefix To Names
    -- Created by Christian Grunenberg Sat May 15 2004.
    -- Copyright (c) 2004-2009. All rights reserved.
    -- Based on (c) 2001 Apple, Inc.
    
    tell application id "com.devon-technologies.thinkpro2"
    	try
    		set this_selection to the selection
    		if this_selection is {} then error "Please select some contents."
    		
    		repeat
    			set prefix to display name editor "Add Prefix" info "Prefix:" default answer "archive-"
    			if prefix is not "" then exit repeat
    		end repeat
    		repeat with this_item in this_selection
    			set current_name to the name of this_item
    			set new_item_name to prefix & current_name
    			set the name of this_item to new_item_name
    		end repeat
    	on error error_message number error_number
    		if the error_number is not -128 then display alert "DEVONthink Pro" message error_message as warning
    	end try
    end tell
    
  2. tell application "Snagit" to activate 
    tell application "Finder" activate 
    tell application "System Events" to keystroke "c" using {control down, option down} 
    end tell

    It wasn't working since the keystrokes don't get pressed in Snagit to get it to work. They are in the Finder.

     

    By modifying your code example, I was able to create the workflow above.

     

    This has the added bonus of not having to keep SnagIt running when it's not used, just open it when a screen grab is needed.

     

    This will open up a whole new way to interact with apps on my Mac.

     

    Thank you Alfred 2! (oh, yea, and jdfwarrior) ;)

  3. 2013-03-16_08-43-21.png

     

    Also, typing VNC 99.9.9.99 (simply masking my actual IP in the forums) launched Screen Share, but said the IP was wrong and showed 999999 in the  As soon as I added the decimal in the IP address, it took me to the Screen Share of the MBP-15

     

    2013-03-16_08-36-10.png

     

     

    Connection failed to “999999”.

    Please make sure that Screen Sharing (in the Sharing section of System Preferences) is enabled on the computer to which you are attempting to connect. Also make sure your network connection is working properly.

     

    2013-03-16_08-38-06.png

     

    OS 10.8.3

  4. I'm good.  Seeing the original code and how you passed the hotkeys to the AS is helping me get a handle on v2 workflows.  I wasn't part of the beta testers and am working with v2 Powerpack features for the first time (long time v1 user).

     

    Thanks again!

  5. I've got a Mac Mini and 15" MBP (MBP-15) that i'm trying to access from my 13" MBP (MBP-13) using this workflow.  My Mac Mini shows up when typing "vnc" in Alfred v2, but not the MBP-15.  I can connect to the MBP-15 via vnc://IP address via Connect To Server fine.

     

    Is there a setting I need to adjust in the System Preferences on the MBP-15 to get it be seen on the MBP-13 (the computer running Alfred v2).

     

    Mac Mini and MBP-15 are running 10.7, MBP-13 is running 10.8

     

    Thanks

×
×
  • Create New...