Created
February 26, 2012 12:53
-
-
Save bilke/1916570 to your computer and use it in GitHub Desktop.
Xcode 4.x PeepOpen applescript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "Xcode" | |
tell front project | |
-- The project root | |
set root_group to root group | |
-- The first folder in the project root | |
-- (Sources folder in CMake generated projects) | |
set first_item to first item reference of root_group | |
-- Get the file path | |
set my_sources_path to full path of first_item | |
-- Open with peepopen | |
do shell script "open \"peepopen://" & my_sources_path & "?editor=Xcode\"" | |
end tell | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment