AppleScript Studio in Xcode 4.0.1

I know in Xcode 3.2 (or earlier) you could enable it (AppleScript Studio) with the Terminal command
defaults write com.apple.InterfaceBuilder3 IBEnableAppleScriptStudioSupport -bool YES
but now that Interface Builder is gone, How can you enable it? Or is it impossible with the new Xcode.
I guess I could use my old Xcode to work on these types of apps, but it would be nice to be able to use this...
Thanks,
kylerjt

AppleScript Studio is deprecated. I believe all your old apps will work, but you'll have to make the move to AppleScriptObjC for any new apps you write. I never used Studio, but I understand ObjC is a much better way of getting things done.

Similar Messages

  • Applescript Studio/Xcode Tutorials

    I'm a big applescripter, and just recently i learned about applescript studio in xcode. I downloaded xcode 3.2.6 and started having fun, but immediately found i was limited by obj-C (i know precious little). So i've been searching for a good bunch of applescript studio/xcode tutorials, but everything i find is for an older version of xcode! If any of you have seen anything for xcode 3.2.6, it would be greatly appreciated!

    AppleScript Studio is the old framework, and is deprecated in Snow Leopard (you can still use it if you really want to, though).  AppleScriptObjC is the new framework, and although you don't need to know Objective-C, it helps a bit to be able to read it, since most of the Cocoa documentation uses it (since ASOC calls Cocoa methods directly, Apple expects you to just use the existing documentation).
    There is an AppleScriptObjC in Xcode tutorial at MacScripter, and Shane Stanley has an excellent e-book available at Mac OS X Automation that will get you up to speed fairly quickly - definitely worth the investment.
    I also have a few example projects and references on my AppleScriptObjC web page that have been gathered from my various wanderings (there are also a couple of conversion examples from AS Studio and Obj-C).

  • Applescript Studio - Dynamically named button title

    Can anyone tell me if it is possible to retrieve the title of a button in an Applescript Studio application?
    I have no problem if the title of the button is set in the Attributes Inspector.
    EXAMPLE:
    If I set the title of a button to "test" in the attributes inspector and attach a script to a button like:
    *display dialog (get title of button "btnName" of window 1)*
    the result will be a dialog containing the text "test"
    However, if I set the title of a button through a script like
    *set title of button "btnName" of window 1 to "test"*
    and then try to retrieve it the same way
    *display dialog (get title of button "btnName" of window 1)*
    the dialog is empty
    Does anyone know if it is possible to retrieve these dynamically set button titles?

    The name of the button has an applescript name, which is how I reference it from the script. But, the actual project uses a series of buttons which all have their titles set dynamically from a script. Also the mode of the buttons are set to "On Off" (not that I think that should make a difference) I am running leopard 10.5 with xcode 3.0.
    I'm rather new to Applescript Studio and xcode. I don't know what would be wrong with the set-up. And why I would have no problem setting the button titles from a script but not be able to retrieve them.
    I have come up with a work around, keeping track of the button titles in a separate array. I seems stupid to have to do that rather than access the existing button property, but it does work.
    I will have to set up a simple test to explore what may be going wrong.

  • Applescript Studio Ad Builder Demo

    Apple distributed a CD for Applescript with a demo for InDesign 2.0 called Ad Builder. Is there an updated demo for CS2 sytax?? It built Real Estate pages..

    Hi--
    AppleScript Studio uses Xcode for creating, editing, and compiling applications, and Interface Builder is for building the GUI part. I'd suggest taking a look at the Apple Developer Connection web site.
    In particular, there's an introduction to AppleScript Studio that may or not explain it all to you. There are even some tutorials there on building apps and gheir GUIs.
    charlie

  • Localize the name of AppleScript Studio application

    Hi,
    How to localize the name of an AppleScript Studio application (Xcode 2.4.1) ?
    I have found the solution in the developer doc, but nothing...
    - I have added CFBundleName in every InfoPlist.strings file (with and without the CFBundleName property in the Info.plist file)
    - I have added CFBundleExecutable in every InfoPlist.strings file (with and without the CFBundleExecutable property in the Info.plist file)
    - I have tried to make localizable the Info.plist file, modifying the CFBundleName and CFBundleExecutable property of every localization
    Of course, I have run "Clean All" between each operation...
    Thanks by advance, CU

    Solution...
    In Info.plist file:
    - The CFBundleName property must have a unique name
    - Add the LSHasLocalizedDisplayName key with string "YES"
    In every InfoPlist.strings file:
    - Add a CFBundleDisplayName property with localized name
    - Add a CFBundleName property with localized name (for the application menu)

  • AppleScript Studio/Xcode problem - Problem with text entries! Please help!

    Hey, I've been up for hours each night looking for solutions to this but still have had no luck.
    I am creating an app in Xcode/Applescript studio that will ask you to enter how many times you would like system events to repeat a certain keystroke. First of all, the code would look something like this:
    on click theObject
    If the name of theObject is equal to "myApplication" then
    (Right here would be where the variables representing text in an input in the app's window would be, which I have absolutely no clue what to type.)
    tell application "text edit"
    activate
    tell application "system events"
    keystroke x (x representing a variable)
    end tell
    end tell
    end clicked
    and that's about as far as I can get. I want a variable representing the text in the main text entry box, but I have no clue how to access that text, or even know if it's submitted or detected when I hit a button. Hopefully you're following, as I am way to confused to fully explain it, but please try and help me out if you can.

    Hi Kamprath445,
    Though this mentions iTunes, I think it has good examples you can use...
    http://dougscripts.com/itunes/itinfo/keycodes.php
    More in depth...
    http://developer.apple.com/documentation/applescript/conceptual/applescriptlangg uide/conceptual/ASLR_variables.html

  • How can I use AppleScript Studio to display an image

    How can I use AppleScript Studio to display an image in a dialog?

    Add an image well to your window in Interface Builder.
    You can also add an image file to the Resources group of your Xcode project and then set the image to be displayed inside the image well directly in Interface Builder. No AppleScript code is needed if the image is contained within your app bundle and can be set ahead of time like this.
    If the image is contained in your app's bundle but you need to set or change the image at run time then you can use a line of AppleScript to load it into the image well using just it's filename:
    set image of image view "yourImageView" of window "yourWindow" to load image "YourImageFile.jpg"
    If you need to load an image from an arbitrary location outside your app's bundle then use a path to the image file...
    set image of image view "yourImageView" of window "yourWindow" to load image "/path/to/YourImageFile.jpg"
    Steve

  • Option+Return does not work in applescript studio

    Fresh install of osx 10.4.6 Tiger, newest release of xcode.
    I start an applescript studio application project, when editing in Xcode Option+Return does not insert the continue line character.
    I can open the same .applescript in the Applescript Editor and Option+Return does work.
    Also, Option+Return works in my desktop installation of Xcode. No idea what's different here or how to fix it, but it's really messing with my work flow.

    Moved to .NET SDK forum.
    Search here, lots of post on IIS and setting Printer Access Permissions for your application.
    Also search MSDN on what is required to for IIS to access local Printers.
    Also search for ActiveX Controls and Browser permissions, you'll likely have problems there also since most Browsers will not or do not recommend allowing any ActiveX control.
    Don

  • Installing Applescript Studio

    Hi,
    Where can I get AppleScript Studio? I can't find it preinstalled on my Mac Mini, nor on the MacOS X double CD. Is there some place I can download it without needing to get the full XCode or Dev Tools?
    Thanks!
    Raph

    AppleScript Studio is not a separate "tool"... it's more or less just a different type of project that you can create and build in Xcode. So you'll use Xcode for creating your AS Studio source files and building your product and you'll use Interface Builder for creating your user interface and connecting the objects in your interface to the AppleScript handlers that they trigger.
    I suppose it does seem like a big download if you are under the impression that AS Studio is just an extension of plain vanilla AppleScript. But in some ways AS Studio is almost more like an extension of Cocoa. An AS Studio app can make use of most or all of the user interface items that Cocoa can use and it can control/interrogate those items using handlers and properties that AS Studio provides. In addition, through the use of AS Studio's "call method" you can make direct calls to Cocoa methods to perform actions that AS Studio doesn't provide out of the box.
    Steve

  • Need applescript studio older version

    I have been asked to program for a company. what I would like to do is go back to an older version of Applescript studio what actually uses Applescript so I can create on interface with drop down windows and that cool floating gray-ish window. I dont know Obj-C.
    what version of AS would that be. thanks for the info.

    AppleScript is a set of system components, so you can't just drop in an older set.
    AppleScriptObjC does use AppleScript, the main difference is in the way it accesses the Cocoa frameworks - AppleScript Studio essentially uses a bunch of terminology and handler wrappers around Cocoa methods that the Studio development team have gotten around to including, while ASOC can call Cocoa methods directly (a bit cleaner than Studio's call method kludge). You don't really need to know Objective C, but it does help a little when looking at the documentation - I know just enough to get an idea what some code snippet is doing, but don't ask me much more than that.
    Older AppleScript Studio projects can still be edited and compiled in Snow Leopard's Xcode, so the components are still in there. Since Apple wants everyone to start using the new framework, the older project templates have been removed, but they can also still be used. If you really need to develop a new Studio application, for example to use on older systems, you just need to do a couple of things.
    1) The AppleScript Studio palette can be enabled in Interface Builder by using defaults write com.apple.InterfaceBuilder3 IBEnableAppleScriptStudioSupport -bool YES
    2) You need to get a copy of an AppleScript Studio project template. If you have access to a Leopard system installation, the easiest way would be to make a copy of the desired template from the */Developer/Library/Xcode/Project Templates/Application* folder there, for example the *AppleScript Application* template (you can also download the old templates from my iDisk here). You probably shouldn't modify anything in the /Developer folder, but you can use custom project templates from your user's *~/Library/Application Support/Developer/Shared/Xcode/Project Templates/Application* folder, so copy your project template there (make intermediate folders as needed).
    Once the template is copied, you can select it when making a new project and use the old terminology as usual.

  • AppleScript Studio projects under Snow Leopard

    I know Apple has depreciated AppleScript Studio, but the documents say old projects can still be used, so I assume there's a way to edit my old AS projects. I have the iPhone SDK with Xcode 3.2 and Interface Builder, but it doesn't recognize my AS project files (e.g., MyProject.pbproj). How do I get Xcode to open my old AppleScript Studio project files?

    The old .pbproj projects will probably need to be converted or opened in an older version of Xcode, which can be downloaded from Apple's Developer Member Site. The newer .xcodeproj AppleScript Studio projects can still be used in Snow Leopard (it is just not recommended), so if you have an existing project you can enable the AppleScript tab in Interface Builder - see the AppleScriptObjC Release Notes.

  • AppleScript Studio Problems...

    I have documented some AppleScript Studio problems that I have encountered, along with some screenshots.
    Hopefully somebody might have a clue what is causing the problems.
    http://www.mac-specialist.com/r/as_studio.html
    I would be grateful for any insights,
    Bill Hernandez
    Plano, Texas

    Steve,
    This is the message I sent earlier with new findings:
    After I deleted "Smart Crash Reports.bundle" in /Library/InputManagers/, I rebooted, went to AS Studio to see if there were any problems, and guess what ?
    The Debugger started working. It's been broken as long as I can remember. Every time I've wanted to learn how to work with AS Studio since it came out, the Debugger has never worked, and I always ended up moving on to something else.
    This is awesome...
    Bill Hernandez
    Plano, Texas
    <hr>
    On Dec 24, 2006, at 5:27 PM, Steve Hayman wrote:
    Hi Bill.
    Make sure you're building a debug version of the project in order for breakpoints to work. In Xcode you set this with Project > Set Active Build Configuration > Debug .
    This was the very first thing I checked the other day when I started trying to learn AS Studio in earnest.
    Also I don't think those messages you are seeing about Smart Crash REports.bundle actually indicate that the app has crashed; it's just reporting that it can't load this bundle for some reason, and then proceeding anyway - I don't see anything that indicates your app has crashed.
    I read a long article at : http://daringfireball.net/2006/01/smartcrashreports
    and came away without a real solution. It was close to 3 am so I was barely awake, but came away confused as to what the solution was. I had used Unsanity's products particularly the menu product, but they caused too many problems with Quickeys and 4th Dimension. After talking to the people that write Quickeys, I disabled all their stuff and everything started working fine with Quickeys and 4D. They are far more important for me, that the Unsanity stuff.
    I agree with the Daring Fireball article, and am annoyed that Unsanity patches the OS without asking for permission. I won't buy their products any more.
    That bundle is something that certain third-party applications install which attempts to email crash reports for their apps back to their authors, rather than to Apple. I don't know what app you might have installed that included this but it would probably be safe to remove the bundle. (Double clicking on it wouldn't do anything; it's not intended to be double clicked; it just sits there and waits to be loaded.)
    After I wrote the original message I realized that it wasn't double clickable, but by then it was too late. I think it was probably Unsanity's APE, or FruitMenu.If you look at /Library/InputManagers/ there's an "info" file, and a "Smart Crash Reports.bundle". I just deleted both of them, if it causes a problem I'll copy them from another machine that doesn't have it. I'm not sure but I believe they patch the original one from Apple. I'm not sure if that is correct?
    <hr>
    On 22-Dec-06, at 8:54 PM, Bill Hernandez wrote:
    Wizards,
    I have documented some AppleScript Studio problems that I have encountered, along with some screenshots.
    Hopefully somebody might have a clue what is causing the problems.
    http://www.mac-specialist.com/r/as_studio.html
    I would be grateful for any insights,
    Bill Hernandez
    Plano, Texas

  • Applescript Studio Problems, Web Browser

    Hey,
    I'm attempting an application using Applescript in Xcode because I just can't get my head around objective-c.
    So far I have a GUI with a button and a webview both linked to this code:
    on clicked (theObject)
    if the name of theObject is "loadgoogle" then
    tell mainwindow
    open location "http://google.com"
    end tell
    end if
    end clicked
    It compiles fine but when I click the button nothing happens.
    Could someone please enlighten me?
    Kind Regards
    Message was edited by: maximart4u

    Are you really using *AppleScript Studio*, or are you just dropping the old handlers into a new AppleScriptObjC project?
    If you are creating a new project, note that AppleScript Studio is deprecated in Snow Leopard. You can still edit existing AppleScript Studio projects (which explains why it compiles), but your on clicked handler does not meet the new naming protocol used in AppleScriptObjC and Interface Builder.
    See the AppleScriptObjC Release Notes - it has information about enabling the AppleScript Studio palette in Interface Builder (the AppleScript Studio project templates have been removed, though). There is also a AppleScriptObjC in Xcode tutorial at MacScripter that should get you started.

  • AppleScript Studio 1.1 or later...

    I tried to run the "Fetch Art" script in iTunes 7.5 and received an error telling me that I need "AppleScript Studio 1.1 or later."
    I have Tiger 10.4.10 with the XCode 2 Developer Tools installed, but I do not find any AppleScript Studio anywhere.
    I also looked back on my OSX CD (10.4.6) and found nothing regarding it specifically.
    I cannot get detailed instructions anywhere on how to install the Studio or where to get it.
    Sure would appreciate any help.

    I just wanted to clear this old question.

  • AppleScript Studio Location?

    I downloaded the Xcode tools volume specifically for the Applescript Studio app. The only problem is, i can't seem to locate that app in particular in the volume . There are a dozen or so packages can anyone tell me which one contains it? I'd rather not install a whole bunch of stuff that i'm probably won't use or just test each one. I have all ready installed the Developer tools.pkg and it wasn't in there. Any help would be greatly appreciated.

    Hey,
    AppleScript Studio is a part of Xcode and not a seperate application. To create an AppleScript Studio project simply launch Xcode and select AppleScript Application as the project type when asked. If you are new to AppleScript Studio you might want to try googling for AppleScript Studio.

Maybe you are looking for

  • Iphone 6 + iOS 8 problems. Halp!

    I own an iPhone 6 + 64gb. It was installed with iOS 8 and worked fine for a small period of time. But, unexpectedly, landscape mode stopped working for the iPhone settings menu, the weather app and the home screen and some others apps. Videos still w

  • Sharepoint 2013 SSRS Interaction with Sql Server 2012 Reporting Services connecting to Sql Server 2008 R2 database

    Hi I'm working on upgrading sharepoint 2010 to sharepoint 2013 with sql server 2008 r2. I've ran into some problems but have been able to get a test farm upgraded. However to run SSRS 2013 it seems Sql Server 2012 Reporting Services are required. Upg

  • Adding a column into existing index

    Can I add a column into existing index? or do I need to drop the index and recreate one? Thanks.

  • PowerMac G4....should I keep this thing?

    Hello Mac Nation, I have an old PowerMacG4 (2003) dual 1.25 that's been sitting. I dont think I can get much for it. Do these older PowerMac's have problems with the latest and greatest OS's, programs, etc? I mainly want to run Illustrator. thanks Me

  • Desktop.open() method doesn't work,

    Hi, I'm developing file explorer with JDK6. But when I try to open file with native asscociation programs with java.awt.Desktop class, I found that's not work at all. there is no response, exception and error. it just 'silent.' I checked each line of