Xcode4 : AppleScript : How to get the current text document?
Xcode4 : AppleScript : How to get the current text document?
- Subject: Xcode4 : AppleScript : How to get the current text document?
- From: Jerry Krinock <email@hidden>
- Date: Wed, 03 Aug 2011 08:07:16 -0700
Has anyone figured out how to reference the text document which is currently being edited in Xcode 4's frontmost window?
The following script:
tell application "Xcode"
set aDocument to file document 1
set aName to name of aDocument
log (aName)
end tell
seems to access a random document from within the project. How do I get the text document that I'm currently being edited in the frontmost window?
Thanks,
Jerry Krinock
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden