4/26/2016

How to install SciTE on Mac

Install MacPorts

sudo port install scite

You also needs to install X11. http://www.xquartz.org/

That's it.

How to set SciTE as the default editor?

Open Script Editor and Save the following script as an Application:

(* This script is destined to be saved as an application droplet. It will process the items dropped onto it. *)

-- This routine processes the dropped item(s)
on open theDroppedItems
repeat with i from 1 to the count of theDroppedItems
set aDroppedItem to item i of theDroppedItems
processItem(aDroppedItem)
end repeat
end open

-- This routine processes an item
on processItem(anItemToProcess)
set pathUnix to POSIX path of anItemToProcess
set pathUnixQuoted to quoted form of pathUnix
-- Here you make your shell command !
set commandToRun to "/opt/local/bin/SciTE " & pathUnixQuoted
do shell script commandToRun & " &> /dev/null &"
end processItem

No comments: