Questions tagged [scripting-bridge]

Scripting Bridge is a Cocoa framework that enables developers to communicate with scriptable applications in Objective-C.

Scripting Bridge is a framework and a technology that makes it much easier for Cocoa developers to control and communicate with scriptable applications. Instead of incorporating AppleScript scripts in your application or dealing with the complexities of sending and handling Apple events, you can simply send Objective-C messages to an object that represents an application with a scripting interface. Scripting Bridge Programming Guide

192 questions
0
votes
1 answer

iTunes Mp3 Add Returning Nil Via Scripting Bridge In ObjC and Swift And Doesn't Import

I'm trying to import a downloaded MP3 into iTunes. My app is for OSX using Swift, and I've tried doing this both in Swift code and in ObjC using interoperability. I've generated the iTunes.h using sdef and sdp. I'm importing it in my Bridging Header…
iniquity
  • 15
  • 7
0
votes
1 answer

Programmatically determine 'pathbarVisible' for a Finder window

I'm using OS X Objective-C in Xcode 6.1 and the Scripting Bridge to create a Finder utility. I have built and utilized Finder.h for the Scripting Bridge using terminal with the following command: sdef /System/Library/CoreServices/Finder.app | sdp…
Jeff Case
  • 1
  • 4
0
votes
2 answers

Scripting Bridge generates error creating a new playlist in iTunes on 10.5, but not 10.6

I'm having a problem with the Scripting Bridge framework in 10.5. Specifically, I use this code to create a new user playlist in iTunes: NSDictionary *propertiesDict = [NSDictionary dictionaryWithObject:@"playlistName"…
0
votes
0 answers

How can I call a command from an scriptable application using Scripting Bridge?

I'm developing an application which needs to work with the Apple version of MS-Word using Scripting Bridge . I need to call a command of MS-Word defined in its sdef file but I can't figure out how to do it. The definition of the command in the sdef…
Emilio
  • 393
  • 1
  • 2
  • 11
0
votes
2 answers

Appscript v/s Scripting Bridge v/s Custom AppleScript

I wish to access iTunes app through my ruby script and looking at all the 3, I am confused which one should I go for. Seems like Appscript is not being supported anymore http://appscript.sourceforge.net/ hence am thinking to remove it off from my…
tech_human
  • 6,592
  • 16
  • 65
  • 107
0
votes
2 answers

How to using ScriptingBridge in the entitlements

I wanna control 'Finder' in my app, so I can minimize Finder. I tried ScriptingBridge, but it doesn't work in Sanboxed. But it works when the app is not sandboxed. So I check the Apple's developer documents, seems that I have to set…
0
votes
1 answer

Making Bridge to Call WCF

Here is my Scenario, In my Server Project I have some WCF calls which uses oracle queries execution. VPN utility is installed on the machine to route these queries to particular server. Now problem is i cant have more than 1 instance of VPN and i…
Hammad Bukhari
  • 459
  • 2
  • 11
  • 30
0
votes
1 answer

Cocoa iTunes ScriptingBridge - How to play playlist shuffled / unshuffled playlist?

I see there is a property shuffle but it doesn't seem to do anything (it still plays shuffled). I tried this but it plays shuffled. I'd like it unshuffled. Is this not possible? iTunesPlaylist *p; for (iTunesSource *source…
user429620
0
votes
1 answer

objective c microsoft word scroll to selection

I have an application which uses the scripting bridge to locate revisions in a Microsoft Word document and display them in a NSTableView. I would like to select the revision text based on a row selection in the table view. I have intercepted the…
Barry Lay
  • 13
  • 4
0
votes
2 answers

Using Apple Scripting Bridge in C

I'm wondering if it is possible to use Scripting Bridge (as discussed here) in C. What I'm trying to do is control and/or get information from Apple applications (such as iTunes, see link listing 2.1 & 2.2 on above link) which is fairly easy using…
Alex Marcotte
  • 475
  • 3
  • 6
0
votes
1 answer

iTunes can't set shuffle mode

I'm using the scripting bride to have my mac app connect into iTunes. I try to set the shuffle property, but it won't change. iTunesApplication *itunes = [SBApplication…
vqdave
  • 2,361
  • 1
  • 18
  • 36
0
votes
1 answer

How to access "id" selector via Ruby ScriptingBridge

I'm trying to get a list of running processes on OS X through Ruby's ScriptingBridge. Everything works fine, except getting the process id. The problem seems to be that Ruby's internal Object#id property is called instead of the…
Mira Weller
  • 2,406
  • 22
  • 27
0
votes
2 answers

Install apps into ipad using Command line or C#

I created an trying for my ipad. I want to install it into my ipad. Is there a command line code I can use to install and launch my app on ipad. Or can it be done through C#. Is it possible only in MAC or it is also possible in Windows. Basically I…
user1683289
  • 1
  • 1
  • 1
0
votes
1 answer

How to 'tell database "My Database"' using Scripting Bridge?

Following Rob Napier's Scripting Bridge tutorial, I was able to set up the generated header for the Database Events app, /System/Library/CoreServices/Database Events.app. I am now trying to use Scripting Bridge to perform the equivalent of tell…
Daniel Trebbien
  • 38,421
  • 18
  • 121
  • 193
0
votes
1 answer

Cocoa ScriptingBridge Input Polling

I am trying to use ScriptingBridge to write a small iTunes controller. The problem is to find an efficient way of getting notifyed whenever any changes occur. My first approch was to poll the input in a loop and just keep checking for differences.…
SIGKILL
  • 390
  • 1
  • 9
1 2 3
12
13