AppleScript Studio Quit Working

Last December (2007) I followed the tutorials in the "Introduction to AppleScript Studio Programming Guide" to create a handful of demo projects, plus one of my own invention that actually worked!
Today I sat down to resume my learning and I found that, while the target apps I had created still work, I cannot rebuild the projects. The error message is the same in every case:
Tool:0: Command /usr/bin/gcc-4.0 failed with exit code 1
Tool:0: /System/Library/Frameworks/WebKit.framework/Versions/A/WebKit
load command 19 unknown cmd field
To reproduce the error, I...
Open the project's folder
Double-click on the <projectname>.xcodeproj icon
Click the "Build and Go" button.
Any idea what may have changed since last December?
--Gil

I just encountered a problem with my project that occurs under the same circumstances: open my project file, click on the build button, and it fails with the same error:
/usr/bin/ld: /System/Library/Frameworks/WebKit.framework/WebKit load command 19 unknown cmd field
collect2: ld returned 1 exit status
I just ran an update to move to 10.4.11. I get the feeling that updated Webkit, and that's causing the problem. I'm on a PPC machine running XCode 2.1 but perhaps it's time to check out 2.5.
For what it's worth, I found that I was still able to compile using "xcodebuild" on the command line. You might try giving this a shot. From the Terminal, cd into the project's directory; then execute "xcodebuild -alltargets clean && xcodebuild build" -- this will clean the current executable then build it.
A couple questions for you: (1) What OS are you running? (2) What version of XCode? (3) What processor architecture (Intel or PPC)?
That's all for now.. let me know how it goes..
On a side note, I found your post through a Google search, and it's only a day and a half old... nice.
(Update -- Ah... I see you solved the problem by upgrading to XCode 2.5.)
Message was edited by: Krishen

Similar Messages

  • 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

  • Starting mysql daemon hangs applescript studio app

    hi,
    i am currently writing a small application with applescript studio that starts an apache server and a mysql database.
    Starting apache via a 'do shell' command is no problem at all but starting mysql with this command
    do shell script "/pathto/mysqldsafe --port=2323 --somemoreoptions &"
    hangs my application.
    Executing the command in a shell works well.
    I guess the problem is that firing the command (in the terminal) causes the terminal to return to the command prompt (username:~ username$ ) pretty immediatley. But after one or two seconds there are some more information echoed to the shell ('Starting mysqld daemon with databases from pathto_datadir').
    Maybe this confuses my app and it starts waiting for things that will never end.
    My current workaround is to open the terminal and to execute the command there:
    tell application "Terminal"
      do script "pathto/mysqldsafe --port=3023 --somemoreoptions &"
      delay 1
      if terminalwasopen is equal to false then
        quit
      else
        close window 1
      end if
    end tell
    Any ideas how to get rid off this wokaround and how to manage this with a simple 'do shell script'?
    Thanks in advance.
    i++
    PowerBook Pro 15"   Mac OS X (10.4.7)  

    This issue is discussed in the do shell script technote.
    Specifically, even though you tell the process to background (by appending the &), AppleScript still holds onto the process' stdout and stderr, waiting for the output of the command.
    The solution is to suppress or redirect stdout and stderr, e.g.:
    do shell script "/pathto/mysqldsafe --port=2323 --somemoreoptions > /dev/null 2>&1 &"
    The '> /dev/null' suppresses stdout (which could go to a file if you prefer), and '2>&1' sends stderr to the same place as stdout.
    Incidentally, I assume you have some check to ensure apache and/or mysql aren't already active, right? This would cause a problem if mysql is already running.

  • Logic Studio quitting unexpectedly

    Logic Studio quits unexpectedly after I installed steinberg cubase LE 5.
    Even after deleting Cubase, Logic still quits unexpectedly.
    As Logic Studio is my main app I need to make sure I can get access to it.
    Can anyone please help me.
    - Jim.

    I finally got through this and wanted to share my findings:
    1. Logic install disks have a surprisingly high failure rate. Apple must know this because they are very quick to send out replacements, well before examining installation problems in any detail. Get replacements.
    2. Go through the install exactly as recommended by the install app. Then use EXSManager to put the samples where you want them. Works great and worth the extra dough.
    3. Pray that Apple buys/licenses EXSManager as a bundled utility so that we don't have to buy a commercial product that does what any pro audio app or sampler should do to begin with.

  • 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.

  • Display alert applescript studio

    Hi everyone!
    I have used before display alert with default button and alternate button and now I would like to add a third button to my alert. I see there is a possibility of "other button" only it stretches out my alert and puts the third button away from the other two. Is there any other possibilities of adding a third button side by side to the other two? Any help is appreciated!
    Thanks,
    Reg

    display dialog can only handle three buttons, and you don't have any control over the formatting/placement:
    display dialog "blah" buttons {"1", "2", "3"}
    If that doesn't work for you, and since you're in AppleScript Studio, just use Interface Builder to create your own alert window with whatever buttons you like.

  • Lightroom and many other adobe products quit working all at once

    I downloaded an update to flash and now I can't even open a pdf. lightroom quit and more. Anyone know how I can contact support?

    uhm, do I really nead a Phenom or an Intel Core 2 Duo/Quad?
    Well, as Technology moves forward you have to decide what works best for you, your needs, and your budget.
    I too hate spending money on new hardware but it's the price I/we have to pay to play.
    As Workstations get faster and more robust so does the software to take advantage of it.
    As Harm points out: you need to look at the Date of your Computer and get Software that also Matches that Date as that is what will run best on it.
    The downside is you won't have all the latest and greatest features but if you've waited that long to upgrade your hardware you probably don't need the latest and greatest features but more-so want them. If you do NEED them, you'll need to find a way to slip both Hardware & Software into the mix.
    I'm in the same boat on the MAC side.
    I need to upgrade my PowerPC G5 to an Intel Based MAC Pro to be compatible with some studios I work with and FC Studio 3.
    Just haven't figured a way to make it cost effective yet.

  • Applescript to quit a daemon?

    So, now and then I need to quit/kill/restart a daemon. Well, I use other Applescripts to quit applications, but apparently, quitting a daemon is not the same. Both show up in the Activity Monitor, but trying to apply a quit and app type script to a "daemon" does not work. I like to use an applescript as then I can just click it and it runs versus having to open Activity Monitor, searching for the daemon, selecting and quitting. 1 click versus like 5 clicks.
    For example, I use this to quit an app..
    tell application "Dock" to quit
    but trying to put in a daemon service in place of "Dock" app does not work becuase this script is looking for an "application"
    So, does anyone know of a simple script just like this that can be written to quit a daemon?

    Just killing a daemon will not necessarily restart it.  How is the daemon started in the first place? It would also help if you told us which daemon you are referring to here.
    In OS X background processes like this are controlled using launchd/launchctl. It would be best if you worked within that system.
    So just killing the process isn;t the answer unless you do not what it started up again.
    it is one for an app that unless the daemon is restarted a portion of the visual monitor displayed in the apple menu will not work.
    Interesting, could you share the name of this program and what ir does ?
    Just like I run a 1 click applescript to kill my dock to regain control of my widgets (as that is an issues no one has ever been able to solve, but a different issue posted about elsewhere).
    What issue is this?
    BTW what version of the OS are you running that might also affect the answer.
    regards

  • 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 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 + Sparkle Framework for auto updates

    I have sucessfully added the Sparkle framework to one of my Applescript Studio applications, but I'm having trouble finding out how to call a Cocoa method from within an Applescript. I need to live-update the interval at which Sparkle checks for updates. As of now I have to restart the app for the changes to take place.
    Here is the explanation from their documentation on how to do it...
    http://sparkle.andymatuschak.org/wiki/Documentation/PeriodicChecks
    +You might make a menu in your preferences to let the user specify this interval; just update SUScheduledCheckInterval in the user defaults with the user’s choice—a setting there will override one in Info.plist. You’ll need to let Sparkle know when the interval changes, though: *just call scheduleCheckWithInterval: on your SUUpdater (it’ll cancel the old one).*+
    I just don't know how to do this in Applescript. I'm assuming it's possible through the "call method" command, but I haven't been able to figure it out by myself.
    My best guess was the following...
    +call method "scheduleCheckWithInterval:" of object "SUUpdater"+
    Has anyone got this working before?
    Thanks for any help.

    Won't be a problem with AppleScriptObjC

  • Applescript Studio app crashes with link error (dyld) image not found

    I've built a small Applescript studio app that works fine on the development machine but when I run it on other machines it crashes with a dyld error, specifically:
    Link (dyld) error:
    Library not loaded: /System/Library/PrivateFrameworks/ZeroLink.framework/Versions/A/ZeroLink
    Referenced from: /Volumes/Discover Your Mac Spotlight movie/Table of Contents Viewer.app/Contents/MacOS/Table of Contents Viewer
    Reason: image not found
    Does any one know why this happens and how I can fix it?
    Thanks very much in advance...
    iMac G5 20   Mac OS X (10.4.2)  

    Rick,
    looks like you built the application in "Development" mode - switch the build style to "Deployment" and most probably things will be fine in the other machine.
    Andreas

  • Applescript Studio: Lion

    Before you tell me, I realize that Applescript Studio is not longer supported in xcode 4.0 (which *****).   But I was wondering if it would be possible to download an earlier version of xcode, that still has applescript studio, and if that would work.  That would be really great if that is possible.
    Alternatively, if anyone has any alternatives to Applescript Studio that would also be nice.  I know that ASOC (applescript objc) is an alternative, but from what I've seen, it looks really different from applescript. 
    Thanks in advanced, Boboonski

    Xcode 3.2.6 (some people still prefer it) can be installed on Lion with a little trickery - a Google search comes up with several solutions.  AppleScriptObjC is way superior to AppleScript Studio though, with the main difference being in the way that Cocoa is used.  Figuring out the appropriate Cocoa classes and methods is the biggest pain in either one, but the AppleScript parts are still AppleScript.

  • Applescript Studio Beginner - Run a script and display a window

    Hi,
    I am new to applescript studio ; I found out how to make an application displaying a window with a progress bar.
    How can I start running a script without displaying any window, and at some time in the script, run the "awake from nib" handler that will call the display of the progress bar ?
    Thanks,
    Nicolas

    Nicolas Silvestre wrote:
    How can I start running a script without displaying any window, and at some time in the script, run the "awake from nib" handler that will call the display of the progress bar ?
    The "awake from nib" handler is called automatically when your nib file gets loaded, you don't call it yourself. I suppose you could go thru the pain of putting your window into a separate nib file and then have your script load the nib file when you're ready... but that's not the easiest way to do it and you probably don't need to do this for your situation.
    All you really need to do is go into Interface Builder, select your window object and uncheck the checkbox in the "Window Attributes" pane that says "Visible At Launch". The "awake from nib" will still be called at it's normal time and your window will be loaded but it will not be displayed.
    Then you can do whatever other scripting you need to do... and when you're ready to display your window you simply call:
    show window "yourWindowsAppleScriptName"
    You can do your initial scripting at the beginning of "awake from nib" and then call "show window" at the tail end of "awake from nib" if that works for you. But you don't have to have the "show window" call in your "awake from nib"... you can call it later on in some other handler if you need to.
    Steve

  • Applescript Studio and Menus

    I am using Applescript Studio and Leopard.
    I have created an application that has menus in it. I can call the menus fine.
    For example, this works:
    on choose menu item theObject
    if (name of theObject is "Test Menu 1") then
    display dialog "You chose Test Menu 1"
    end if
    end choose menu item
    All I want to do is have the user make a choice from the menu, and based on that choice, call an external script. I'm stumped. Any help with this?
    on choose menu item theObject
    if (name of theObject is "Test Menu 1") then
    -- What goes here?
    end if
    end choose menu item

    Sample code.
    Note:
    Four (4) menu items were added to the projects' 'File' menu, and titled 'External Script "Eins"' (Command 1), 'External Script "Zwei"' (Command 2), 'External Script "Drei"' (Command 3), and 'External Script "Vier"' (Command 4).
    Four (4) script files were created ('Eins.scpt', 'Zwei.scpt', 'Drei.scpt', and 'Vier.scpt') and saved to the 'Desktop'. The 'Drei.scpt' and 'Vier.scpt' files were dragged to the projects 'Groups & Files' list into 'Resources'.
    -- Code starts here --
    on choose menu item theObject
    -- Example of calling scripts - external to the AppleScript Studio application.
    if ((name of theObject) is "externalScript01") then run script (((path to desktop from user domain) as string) & "Eins.scpt") as alias
    if ((name of theObject) is "externalScript02") then run script (((path to desktop from user domain) as string) & "Zwei.scpt") as alias
    -- Example of calling scripts - internal to the AppleScript Studio application.
    if ((name of theObject) is "externalScript03") then run script (((path to me) as string) & "Contents:Resources:Scripts:Drei.scpt") as alias
    if ((name of theObject) is "externalScript04") then run script (((path to me) as string) & "Contents:Resources:Scripts:Vier.scpt") as alias
    end choose menu item
    -- Code ends here --

Maybe you are looking for

  • Disable/Hide the Refresh Button in Child report

    Hi All, Our Environment is BOXI-R2; We have a Master Report calling a Child Report (based on Open Document); Our requirement is to hide the" Refresh Button "in the child report Layout we tried using "hideRefresh=true" but the child report is not resp

  • Email Attachment

    Hi, I have to change the prog to send email as attachment. I did some changes. Looks it needs some more changes. Can some one help me on this. I am not using ALV. Thanks Veni. REPORT ZSDRSHIP LINE-SIZE 248 LINE-COUNT 65 MESSAGE-ID ZV                 

  • IPad 3 Internet Issues

    I'm currently using an iPad 3 which is able to connect to the home network but not the internet. All other devices can connect to the network and then the internet. When I use my iPhone 4 as a hotspot, it gets picked up by the iPad no problem. So far

  • Odd problem with display in 9.2.2

    Hey, I just bought an older Apple lcd display (A1038). I use it with a G4 A/V tower. This Apple cinema display works great at the higher resolutions in OS X (10.2.8) and only works at the lowest resolution (640X480 - no other choices given)) in OS 9.

  • Standard message type limitation on company code

    Hi all, currently I'm implementing ale distribution with the standard message type FIDCC1, i'm filling idocs in my source code and run function master_idoc_distribute now i need to set up a distribution model, but when i do so, the transactions to ma