• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Scripting XCode: determine current source document and text selection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Scripting XCode: determine current source document and text selection


  • Subject: Scripting XCode: determine current source document and text selection
  • From: Volker Schumacher <email@hidden>
  • Date: Sun, 28 Jan 2007 19:26:16 +0100

Dear AppleScripters,

I am trying to automate XCode via AppleScript. But I'm new to AppleScript, and have problems to figure out some basic things.
I need to access my current text selection, and also the name and the path of the currently edited open source document.


I found out that I can get the path via

    set thePath to associated file name of window 1

so I could also determine the document name by truncating the path if it is not available directly.
I managed to get the name and path information form text documents within the currently open project document (set theDoc to text document 1), but I don't know how to find out which one is currently displayed in the text editor. I also have no idea how to get the current text selection.


Thanks! Volker
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/mailman//archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: Scripting XCode: determine current source document and text selection
      • From: Takaaki Naganoya <email@hidden>
  • Prev by Date: Entourage Email to Structured PDF script
  • Next by Date: Re: Where does Mail store deleted messages?
  • Previous by thread: Entourage Email to Structured PDF script
  • Next by thread: Re: Scripting XCode: determine current source document and text selection
  • Index(es):
    • Date
    • Thread