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

loading a html file from resources into webview applescript

I would like to load a local html file from resources into a web view in a applescript objc app. I have added the files to the bundled resources but I'm not sure how to load them into the web view with something like tell myWebView to…
waddle
  • 1
0
votes
1 answer

How to open a new GUI and close an old GUI in ApplescriptObjC

I'm trying to make it so when a button is clicked, the current GUI closes and a new GUI opens. I created a second interface to open. So right now, I have 2 xib files, and the AppDelegate file. Do I program both of the GUIs with the same AppDelegate…
James
  • 213
  • 1
  • 3
  • 13
0
votes
1 answer

Xcode AppleScript Application execute only

I build an Application in Xcode using AppleScript. I know from the AppleScript-Editor that i can mark my Scripts as "only execute", so that they can't be edited again. Now the Question is, can i do so also in Xcode with that Project?
Phil
  • 327
  • 1
  • 4
  • 12
0
votes
2 answers

How to program radio buttons in Cocoa Applescript (ApplescriptObjC)

So right now I have built a user interface on Xcode and I am scripting AppleScriptObjC. I have 4 radio buttons on my interface. How to I program them? This is my current code: -- IBOutlets property window : missing value property question1Radio1 :…
James
  • 213
  • 1
  • 3
  • 13
0
votes
1 answer

How can I convert the input __NSArrayM into an AppleScript list in an Automator Action project?

Automator Action I am making a custom Automator action for manipulating text input. I tested the input to see what class it was and the result was __NSArrayM. This means that I need to somehow convert this input into a list that AppleScript can…
Jonathan Komar
  • 2,678
  • 4
  • 32
  • 43
0
votes
1 answer

Select Item In List Using Tag and Value

I can't quite get my Javascript to select this item in a list. There are two identifiers that I must use to select an item in a list, using Javascript in an Applescript. I can't feasibly script the GUI, so this must be done programatically. Below is…
pianoman
  • 815
  • 2
  • 16
  • 36
0
votes
2 answers

Applescript: Write New File Without Old Filename

To preface: My Applescript takes an Excel file, and copies its data into a new plain text file. I am having trouble writing the new text file in the same location as my existing Excel file, but without the filename of the original file. For…
pianoman
  • 815
  • 2
  • 16
  • 36
0
votes
0 answers

NSTextField and center placeholder but keep Justification for regular text

My question somewhat has 2 parts. I'll give you some background: I decided to build an AppleScript that pulls old time machine backups when someone's Time Machine isn't recognized. It prompts for the old Username, HDD name, and the external HDD…
ElRojito
  • 157
  • 6
0
votes
1 answer

Getting Timeout Error When Using suspendExecution and resumeExecutionWithResult with NSScriptCommand

I am currently making use of the suspendExecution and resumeExecutionWithResult of NSScript command in order to execute Apple Scripts asynchronously in my application. Provided below are the set of basic steps that I have taken to achieve the…
0
votes
1 answer

How to get the method name where the caret currently is from Xcode?

After one month of googling I can't find a solution to my problem and I'm getting desperate. I found many unrelated topics around (and I expected more discussions on Xcode in general), some discussions are stating that Apple does not want to give…
0
votes
2 answers

Embed a bash shell script in an AppleScriptObjC application with Xcode

I have attempted to follow the instructions on this post but I am falling short of understanding how some of the posters instructions work. I want to be able to package the app with a prewritten bash script and then execute it, but don't follow from…
Danijel-James W
  • 1,356
  • 2
  • 17
  • 34
0
votes
1 answer

Call Cocoa-function removeItemAtPath through AppleScript

I want to use the Cocoa-function removeItemAtPath to delete a folder with a path specified in AppleScript part but don't know how to accomplish that through AppleScriptObjC. Can you help me by giving an example?
Hedge
  • 16,142
  • 42
  • 141
  • 246
0
votes
1 answer

Detecting tab view change Xcode OSX AppleScriptObjC

I am building an application in AppleScriptObjC and I have a beginner question - how can I handle clicking on tab buttons in my app? I'm trying to make it have different sizes for each tab. I can make the window resize, but not when you click on a…
russellsayshi
  • 2,449
  • 5
  • 17
  • 21
0
votes
1 answer

Using AppleScriptObjC to read content file and write new content to it

I want to write an applescript code that reads a file and writes back to it when I modify input dialog like : set theFile to "/private/etc/hosts" set theFileContent to read theFile I created a text field and 2 buttons using Xcode 4.6 . I want to…
nemtabi
  • 39
  • 6
0
votes
1 answer

Get the ProcessList like from cmd+tab

I want to get the applications from the cmd+tab menu in OS X. The best way I got now is to associate this with a AppleScript call with the following: NSDictionary *errorDict; NSAppleEventDescriptor *returnValue; NSString *appleScriptText = @"tell…
mariusLAN
  • 1,195
  • 1
  • 12
  • 26