-
Notifications
You must be signed in to change notification settings - Fork 11
Description
The app name "Xcode" is hard-coded in the services, which does not handle multiple Xcode installs very well. For instance, if I run the service from within a developer preview release named "Xcode45-DP4.app" the service will instead launch my primary Xcode.app install, attempt to query it for the current document, and fail.
I was able to resolve this locally using a combination of set app_name to path to frontmost application as text
to get a unique reference to the correct Xcode instance, and a using terms from application "Xcode"
block around the tell application "Xcode"
(now tell application app_name
) commands. There is probably a more robust solution, but I am unfamiliar with AppleScript so I will not be submitting a pull request for this issue based on my fix.