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

Get Artwork of current iTunes track

I searched all over the web and this site to understand how to get the artwork of the current iTunes track. any suggestion? thanks
Luca
  • 1,704
  • 3
  • 29
  • 42
0
votes
2 answers

Cannot find ScriptingBridge.framework

I am new to objective-C. I have programmed my first App in the last 2 months. I am now trying to access iTunes information and the coding appears to be straight forward but I cannot locate the ScriptingBridge.framework. I am using Xcode 4.5. I…
0
votes
1 answer

Spotify AppleScript strange artwork behaviour and unexpected SpotifyImageData

I use Scripting Bridge (Cocoa) to access AppleScript methods and properties of Spotify. For example, I need to access artwork of the current playing track. On the most of my machines Spotify pushes an ordinary instance of NSImage class, which I can…
Daniel O'Hara
  • 13,307
  • 3
  • 46
  • 68
0
votes
1 answer

create mail with script bridge

I am trying to create a new email using the cocoa scripting bridge,but can not seem to get it to work.I have so far: MailApplication *mail = [SBApplication applicationWithBundleIdentifier:@"com.apple.Mail"]; MailOutgoingMessage *emailMessage =…
Blues Zhou
  • 306
  • 2
  • 16
0
votes
2 answers

Saving attachments from Mail.app through ScriptingBridge (Objective C)

I'm trying to retrieve attachments from Mail.app through scriptingbridge. I'm using the following code to get access to my inbox messages. MailApplication *mailApp = [SBApplication applicationWithBundleIdentifier:@"com.apple.mail"]; MailMailbox…
Bob Rivers
  • 5,261
  • 6
  • 47
  • 59
0
votes
1 answer

Can't find Scripting Bridge header files: mail.h iCal.h after upgrading Xcode

This should be easy.. I recently upgraded to the newest version of Xcode on 10.7 from Xcode 3.6 I believe. I have been working with scripting bridge for both Apple Mail and iCal. Previously, I could use FILE > Open Quickly... to view either the…
Greg Steiner
  • 647
  • 1
  • 9
  • 20
0
votes
1 answer

Selecting an outgoing mail message programmatically

Here's what I'm attempting to do: Let's assume that you are in mail and create a New blank mail message, then enter some data into it, such as body copy, etc. (in my case, the message was created through scripting bridge using the "Mail Contents of…
Greg Steiner
  • 647
  • 1
  • 9
  • 20
0
votes
1 answer

Scripting Bridge adds unwanted HTML code when adding recipient to mail

Ok, so this one is a bit strange.... I have an HTML page in Safari which I want to send as an email. If I go the FILE menu and select "Mail Contents of this Page", it transfers as expected and looks correct. However, if I use Scripting Bridge add…
Greg Steiner
  • 647
  • 1
  • 9
  • 20
0
votes
2 answers

Scripting Bridge, Apple Mail, HTML and Header Files

I've been able to hack my way through scripting bridge and apple mail and can now send emails from my cocoa program. Now, I'm trying to send HTML mail and have run into a snag. In short, I have generated an NSString containing the entire HTML code…
Greg Steiner
  • 647
  • 1
  • 9
  • 20
0
votes
1 answer

Interpreting the body of a mail in cocoa using the scripting bridge

When using the Scripting Bridge to access the Mail app one can easily retrieve an email of type MailMessage. Accessing the contents of the mail however is another story. The body is stored in a content property of type MailRichText and I have no…
Joris Mans
  • 6,024
  • 6
  • 42
  • 69
-1
votes
1 answer

AutoSend NSSharingService: Email

I'm trying to use NSSharingService to compose a mail. I'm able to add recipients, body, subject and attachments but I can't seem to add a sender and autosend the email. Is there a way to add a sender and automatically send the email using…
cessmestreet
  • 2,298
  • 3
  • 22
  • 42
-1
votes
2 answers

Play songs by album/artist on iTunes with Scripting Bridge/Obj-C

Given a name of an album or artist I would like to tell iTunes to play all songs by that artist or on that album. How can I do this? I know how to get all the songs to play by filtering an array with all the tracks, but how do I tell iTunes to play…
Alex
  • 5,009
  • 3
  • 39
  • 73
1 2 3
12
13