Can I read in objective lens current using DM script? - dm-script

I am wondering if I can get the objective lens current by some commands in DM script. I tried to figure it out in the help file, but I only found the command to get objective stigmation (EMGetObjectiveStigmation), but not the one for objective lens current.

Related

Xcode / AppleScript / Objective-C (AppDelegate.applescript)

I am having a lot of issues following this video tutorial. I'm getting hung up on the AppDelegate.applescript file. AppleScript Facelift
Here are the steps I'm taking:
1. Create a new project
2. Then I choose "App"
3.1 Options for interface
3.2 Options for Language
Save to file location - can't attach an image due to limit
5. "Template" files created
6. I can add frameworks and libraries (not sure if this is necessary? im doing things blindly...)
7. Then these are the AppDelegate files. (note- I can change the identity and type in the top right fields. if I select AppleScript Uncompiled Source, it does not change the extension)
I've tried creating a new "blank file" and saving it as AppDelegate.applescript, but I don't think this is working. Can someone point me in the right direction???
I've been working on an AppleScript project which works with my Apple Music. Someone mentioned I should look into Objective-C AppleScript, but this is making no sense. I think my end goal is having a window that allows more flexibility with input...
Thanks in advance!
The answer: I was taking a very dated approach to this and asking the wrong question.#has's suggestion to look at his project Swift-AppleScriptObjC is exactly what I needed.

adding imports to objc bridging headers

I have been having an issue with using objective-c files in my swift project. I have come to the realization that I had already imported an objective-c file. So instead of importing another file, I decided to update the previous imported obj-c file with one more #import "STPAUBECSDebitFormView.h". this is for using stripes services.
photo below,
sorry for the false highlight, its STPAUBECS that I am having with.
with importing this file, I am getting hit with the 'STPMultiFormTextField.h' file not found and failed to emit precompiled header. However, if I were to remove that
import "STPAUBECSDebitFormView.h" I am hit with the image below,
I am trying to understand how to use multiple languages inside of swift. would really appreciate it if someone could help me understand how to use stripes obj-c language inside of swift.

Check if a specific window is displayed on the screen using objective C

I am using Objective C to automate the working of an application. I need to check if on find replace, the alert start from beginning is displayed or not. How can I do this using Objective C?
I used the NSAccessibility class to find the desired window by passing the values for the attributes AXIdentifier and AXRole. It works fin.

Cocoa App: Binding stdin/stdout to NSTextField

I have a C code which embeds Lua interpreter and some scripts. These scripts relies on stdin/stdout for user input/output.
I am trying to write a simple cocoa application with single NSTextField which will act as a stdin/stdout for my C code.
I was able to bind stdout as explained on this link:
What is the best way to redirect stdout to NSTextView in Cocoa?
How do I bind stdin with my NSTextField?
( In simple word, "scanf" should be able to receive input from text field. )
NOTE: I don't want to use NSTask. My C code has to be part of my cocoa app. ( basically there is no sub-process )

Compile one Objective C iOS class before share code with others

I have to share my source code with someone else but I don't want them to look in certain classes (or categories). Can I compile them into binary file with h file outside? Something like iOS framework that displays only header files.
You can put them in a custom framework and link to your project. Look here.