Jump to content

capsella

Member
  • Posts

    7
  • Joined

  • Last visited

Posts posted by capsella

  1. is there a way to make this mount the disk as a transmit drive? i had modified the old applescript transmit extension by adding 'with mount' to the script, but I'm not sure what to change in the php version. (applescript version below)

     

    on alfred_script(q)
    tell application "System Events"
    	set rn to count (every process whose displayed name is "Transmit")
    end tell
    tell application "Transmit"
    	activate
    	set countWindows to count every window
    	countWindows
    	if q is not "" then
    		if countWindows > 0 then
    			set myFave to item 1 of (favorites whose (address is q) or (name is q))
    			if rn > 0 then
    				tell current tab of (make new document at end)
    					connect to myFave with mount
    				end tell
    			end if
    			if rn = 0 then
    				tell current tab of (document of first window)
    					connect to myFave with mount
    				end tell
    			end if
    		end if
    	end if
    end tell
    tell application "Transmit"
    	delay 10
    	quit
    end tell
    end alfred_script

     

     

    Thanks!

     

    -Andrew

×
×
  • Create New...