Questions tagged [applescript-objc]

AppleScriptObjC is a framework that allows Cocoa applications to be written in AppleScript. It obsoletes AppleScript Studio as of Mac OS X 10.6.

274 questions
0
votes
1 answer

How can I use AppleScriptObjC to get the current url of a web view in Xcode?

I have a webView in Xcode, and after a few seconds of browsing I want to be able to get the current URL of the web view. I've searched around but I can't find how. Any help would be appreciated!
russellsayshi
  • 2,449
  • 5
  • 17
  • 21
0
votes
1 answer

AppleScript works wonders on its own but does not work when called from the plugin

I know that using AppleScript cannot get access to the content of the newly created user-writing, so I use GUI Scripting. But I want Mail.app to contain its own button, which has added to the newly created files I send from my desired directory. I…
WINSergey
  • 1,977
  • 27
  • 39
0
votes
1 answer

How could I use AppleScriptObjC to change the state of a button based off a string?

In my AppleScriptObjC program, I have lots of checkboxes. I have a script that loops through a list with each of the item identifiers for the button as strings. I want it to activate each of the buttons' setState_ methods based off of parameters. …
russellsayshi
  • 2,449
  • 5
  • 17
  • 21
0
votes
2 answers

How can I use AppleScriptObjC to close my Xcode application?

I have an AppleScriptObjC Xcode application. Within this application, I've built an updater that checks for updates on startup and will prompt the user to download them. Everything works wonderfully - except for one thing. I need the app to…
russellsayshi
  • 2,449
  • 5
  • 17
  • 21
0
votes
1 answer

How do I Switch Windows in AppleScript

I've just started working on a Applescript project, ( First time I've used AppleScript, Used Objective-C prior ) Now I've made a project in Xcode ( AppleScript Based ) and there's really one thing that I can't figure out. How do I switch windows…
Sam Guichelaar
  • 457
  • 2
  • 12
0
votes
1 answer

How to get constant feedback from a slider in Xcode with ApplescriptObjC?

I'm new to ApplescriptObjC as you'll probably see if you keep reading. I was wondering how to get constant feedback from a slider so that as soon as its value is 1 it runs script A and as soon as its value is changed to 0, it runs script B. I know…
0
votes
1 answer

Different ways to Launch MAC OSX objective C opplication from command line

I have a MAC OSX objective C application say first.app ,in which i use NSAppleScript with admin privileges to run a shell script.This script is indented to launch another Objective C application say second.app. When you use open command Ex: "open…
user12345
  • 425
  • 1
  • 3
  • 14
0
votes
2 answers

How can I create a class method using AppleScriptObjC

I'm trying to override the +initialize method of a class using ASOC, but I cannot find a way to override a class method. Is it even possible? Not to let any confusion possible about the language I'm talking about, here's some code: script…
Frizlab
  • 846
  • 9
  • 30
0
votes
2 answers

Is there a way using AppleScript to click osx menu items without accessing "System Events"?

I use code like this to do some menu clicks automatically instead of doing them myself every time again: tell application "System Events" to tell process "myApp" click something and so on end tell Now, to make this work in the osx lion sandbox,…
0
votes
1 answer

convert image to .icns file AppleScript Obj-C

how can I convert a .png image to a .icns using applescript? Any help would be greatly appreciated.
atomikpanda
  • 1,845
  • 5
  • 33
  • 47
0
votes
1 answer

Applescript-ObjC Open new window

I have another question. I've made an exit window to display when the user hits the "Exit" button or uses "Cmd-Q". The window itself has its own "Exit" button. How do I make it such that the window can be displayed upon Cmd-Q or hitting the "Exit"…
0
votes
1 answer

Convert applescript to applescript studio

This is my first time here. Anyway I have a question. I just decided to try using Applescript studio, but currently I have trouble converting my script and linking actions to the GUI. I will provide more info if needed, but I just need to convert an…
-1
votes
1 answer

Capturing A CheckBox Toggle State In An Xcode AppleScript Project

I have been trying to figure this out for a few days now and still cannot understand how this works. I have created a new AppleScript Project in Xcode version 13.4.1 and added a CheckBox and a Button. My goal is to try and so something depending on…
Ian Barber
  • 133
  • 8
-1
votes
1 answer

Calling an NSWorkspace Method Using AppleScript

Have been Googling for hours with absolutely no luck. Decided to post here as a last resort. I'm trying to access setIcon:forFile:options: of NSWorkspace's sharedWorkspace. Take for example, the following code snippet: set r to current application's…
-1
votes
1 answer

Looking for example of how to display text in an NSWindow programmatically?

I am trying to display text in a HUD style semi-transparent window. I have got the code for the window all set up, but I have been scouring the documents for two days now and haven't come up with a way that works to actually display text in the…
Chris Norman
  • 225
  • 2
  • 11
1 2 3
18
19