AppleScriptObjC is a framework that allows Cocoa applications to be written in AppleScript. It obsoletes AppleScript Studio as of Mac OS X 10.6.
Questions tagged [applescript-objc]
274 questions
0
votes
1 answer
How to mininmise xib window in applescripts xcode project when a button on it is clicked
I created an apple script xcode. Where the main.xib is a window with two buttons. When one button is clicked i am running an shell script, when another button is clicked i am running another shell script, all this part of code i added in…

MacDeveloper
- 1,334
- 3
- 16
- 49
0
votes
1 answer
Pass a window as argument to a function in applscript
I am working on automation of a website and want to make it a little modular. for example the code would be as follows:
global _width
global _height
global windowId
global baseURL
global theIndexOfW
on openApplicationWindow()
tell application…

VariableVasasMT
- 164
- 10
0
votes
1 answer
Setting Property Value of Object in Applescript Objective-C
I am working in XCode (5) on OSX 10.9.5, creating an ApplescriptOjbC project.
I have created a new applescript in the project with a class (script) named "MSDropBox" and am using it to accept the drop of files. The files dropped have their file…

JP Mac Guy
- 3
- 4
0
votes
1 answer
Cocoa SBridge : how to get the return value (complex type) of applescript
I'm trying since one month to create an application that detects the current track of iTunes to tag the song and calculate the bpm (through a taping button)
When the user modifies one of the field of the tag, the track is locked in the application :…

laurent
- 1
0
votes
1 answer
AppleScriptObjC - correct syntax for checking the window title string in an IF statement
I'm trying to build an if statement in AppleScriptObjC that checks whether the title of a window matches a certain string, but I'm not sure of the correct syntax.
For example:
theWindow's setTitle_("testing")
if theWindow's title = "testing" then
…

Bananimus Prime
- 25
- 5
0
votes
0 answers
Bundle Fonts Into An AppleScriptObjC App
Is the process for embedding a custom font different with Cocoa-AppleScript apps?
I have a label that would display a string in this custom font, but it is still defaulting to the system font when packaged and run on a mac that doesn't already have…

Bananimus Prime
- 25
- 5
0
votes
1 answer
Support With Sharing AppleScriptObjC Variable To Label Object
script AppDelegate
property theWindow : missing value
property displayLabel : missing value
on applicationWillFinishLaunching:aNotification
display dialog "Are you ready?" buttons {"Yes", "No"}…

Bananimus Prime
- 25
- 5
0
votes
1 answer
Share a String Variable Between AppleScript & Objective C
I have perhaps 1% Objective C knowledge, and am more comfortable using AppleScript for small tasks.
I'm developing an app that requires a more attractive alert window though, so I have started to learn more about AppleScriptObjC.
My question is, how…

Bananimus Prime
- 25
- 5
0
votes
1 answer
cocoa-applescript: running handler or command every few seconds
In normal applescript, the script is executed down the page, and so any code in loops for every 5 seconds will only run while the loop is running - there is no way to have a single function run every few second regardless of what the script is…

DJpotato
- 17
- 7
0
votes
2 answers
cocoa-applescript: Determinate progress indicator
I am making an application using Cocoa-Applescript which identifies local IP addresses which are up and running, by pinging x.y.z.[1-255] and appends running IPs to a text file. I already have a GUI for choosing x, y and z and have already made the…

DJpotato
- 17
- 7
0
votes
0 answers
Undefined symbols "_OBJC_CLASS_$_" error
My project is written in ApplescriptObjC and Objective-C.
I have an NSTabViewDelegate, which must be written in ObjC:
#import
#import "MSItems.h"
@interface MSTabView : NSTabView
- (void)tabView:(NSTabView…

Matteo La Mendola
- 35
- 6
0
votes
2 answers
Objective-C | Outlet Collection OSX
Basically I have a bunch of variables in my project, whose names are identical, only a number is different. I have to write a code, which is almost the same for all the variables, but a number changes. The actual problem is that all these variables…

Matteo La Mendola
- 35
- 6
0
votes
1 answer
Applescript-objc - accessing class properties
If I have a class BFLocation and I pass an array of those objects into my applescript-objc, how do I access the class properties?
BFLocation.h
@property NSString *url;
BFManager.h
#import "BFLocation.h"
@interface script : NSObject
-…

dcg
- 1
- 1
0
votes
1 answer
How to show an image saved on Documents Directory inside local HTML? iOS
I've this app which needs to store images shown in a webview locally, and show those stored images again inside the same webview.
This what I've gotten so far...
// After download button clicked... Store image from URL locally
NSURL *url =…

dianakarenms
- 2,609
- 1
- 22
- 22
0
votes
2 answers
How can I read the clipboard using AppleScriptObjC and NSPasteboard
I'm finding my way around AppleScriptObjC and have found Shane Stanley's Everyday AppleScriptObjC helpful. But I'm still having a hard time knowing where to start with NSPasteboard.
Here's what I have so far:
use AppleScript version "2.4"
use…

tdnelson2
- 555
- 1
- 4
- 13