Skip to content
This repository was archived by the owner on Oct 4, 2021. It is now read-only.

[Mac] Use NSAppleScript instead of Carbon to spawn the terminal process #6215

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

iainx
Copy link
Contributor

@iainx iainx commented Oct 5, 2018

Uses Cocoa's NSAppleScript class to do all the heavy lifting of compiling and executing the AppleScript code.

Fixes VSTS #703355.

@iainx iainx requested review from mhutch and sevoku October 5, 2018 14:47
: base (GetFullMessage (error, returnValue))
static class NSAppleScriptError
{
public const string Number = "NSAppleScriptErrorNumber";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@iainx
Copy link
Contributor Author

iainx commented Oct 5, 2018

@mhutch Ah, of course.

var dict = new Dictionary<string, string> ();
DecodeDescriptor (result, dict);

if (result == null) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I should probably check null before I try to decode...

@iainx iainx force-pushed the use-nsapplescript branch from 0bd4940 to d0166a5 Compare October 9, 2018 10:20
@slluis
Copy link
Member

slluis commented Oct 10, 2018

@iainx Can you explain what does this fix? Can we have a work item for it?

@iainx
Copy link
Contributor Author

iainx commented Oct 11, 2018

It doesn't fix anything really, it just removes some old complicated Carbon code.

@slluis
Copy link
Member

slluis commented Oct 11, 2018

Ok, I'm not qualified to review this, somebody else will have to.

@iainx
Copy link
Contributor Author

iainx commented Oct 11, 2018

I've made a user story for removing carbon code, and added this as a task under it https://devdiv.visualstudio.com/DevDiv/_workitems/edit/703355

@iainx
Copy link
Contributor Author

iainx commented Oct 11, 2018

https://devdiv.visualstudio.com/DevDiv/_workitems/edit/703346 is the parent user story

@Therzok
Copy link
Contributor

Therzok commented Nov 22, 2018

We can break API in release-8.0. We should rebase it on top of that.

@iainx iainx force-pushed the use-nsapplescript branch from d0166a5 to 779be79 Compare August 8, 2019 10:17
Base automatically changed from master to main March 9, 2021 14:17
@akoeplinger akoeplinger changed the base branch from main to master March 15, 2021 17:02
Base automatically changed from master to main March 15, 2021 17:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants