Re: Applescript: Xcode's "front" project is not one in front window
Re: Applescript: Xcode's "front" project is not one in front window
- Subject: Re: Applescript: Xcode's "front" project is not one in front window
- From: "Kevin A. Mitchell" <email@hidden>
- Date: Fri, 22 Sep 2006 20:09:23 -0500
Jerry Krinock said the following on 9/22/06 1:05 PM:
Runing this AppleScript:
tell application "Xcode" to return name of front project
Expected Result: Name of project which is shown in frontmost window.
Actual Result: Project which has index 1 in the "projects" collection, not
necessarily the one shown in the frontmost window.
Does anyone know how to get the expected result? I've tried a bunch of
stuff involving the "front window" but always get syntax errors.
Have you tried
tell application "Xcode" to return name of active project document
?
Open the dictionary in Script Editor:
application n [inh. application; see also Standard Suite, Application
Suite] : The Xcode application.
elements
contains breakpoints, bundles, class model documents, data model
documents, data sources, documents, drag infos, events, file
breakpoints, file documents, images, items, model documents, movies,
pasteboards, projects, project documents, sounds, source documents,
symbolic breakpoints, text documents, toolbars, windows, windows.
properties
active project document (project document) : The active project document
in Xcode.
_______________________________________________
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