Applescript/Xcode (engine maybe?) broken??

I know this post doesn't belong here so I post it here,
since a few days i have a problem:
I wrote an applescript connected to my mainwindow, at first it just worked fine but now
the buttons / text fields and anything else that should be connected to my applescript doesn't work
anymore. Yes I've set the right names and applescript file but my program wont work.
I tried to re-compile old project's and they don't work either. even reinstalling did not do anything
PLEASE I AM DEVASTATED, HELP ME!!

I am guessing that this is an *AppleScript Studio* project. What exactly "won't work"? Did something change since the last time your project ran (for example, relocating or renaming the project folder)? If you rearranged or renamed some objects, you might try cleaning the project and rebuilding. You should also be able to use Xcode's run console to see any errors your script(s) are generating.
For AppleScript questions, you can post your topic in the AppleScript forum, and for Xcode projects, you can post your developer/developing topic in the Software Development 101 or Developer forums.

Similar Messages

  • How can I create an infinitely refilling draggable item in Cocoa-Applescript, Xcode?

    It's hard to explain. The only example I can give it how you can infinately drag buttons from Xcode Editor into a window, except instead of a button, I need a custom view, and instead of a window, I need a verticle list. How can I do this using AppleScript-ObjC, in Xcode?

    NSTableView (or just NSScrollView) can be used, but you need to define what you are dragging - see Drag and Drop Programming Topics.

  • Cannot access search engine - maybe "search" is not recognised as a context

    Hello,
    I cannot access the search engine
    http://server:port/search
    doest not work.
    Maybe it is linked to another problem:
    I wanted to make a mapping between a
    context and a directory,
    but "additional directory document" does not work.
    So I created another Web Application
    (in web-apps.xml)
    so maybe search is not recognised as a context.
    well I don't know, and I wish someone had this problem and has a clue.
    Thank you very much in advance,
    Pascal

    Hello,
    first, thanks a lot for answering,
    and sorry for the poor description
    - the request to access the search functions of Sun One
    is: http://server:port/search
    - If I define a web app (in web-apps.xml)
    with an empty context
    and whose document root is /docroot,
    the request http://server:port/search
    does not work
    error: "file /docroot/search not found"
    - If I define a non empty context for my app
    the request http://server:port/search is OK,
    but I will have to make a lot of modifications
    in my app :-(
    Do you think there is a way to make Sun One 6 understand
    that "/search" is not a subdirectory of
    my app even if my app has an empty context?
    Thanks a lot,
    Pascal

  • How to allow or unrestrict silverlight plugin in Safari 7 (applescript, xcode or automatic way)

    Without any user prompting, I want to allow or unrestrict silverlight plugin in Safari 7 (OS X maverick), Any code (applescript or xcode) is working fine to do it? or Any automatic or semi-automatic way recommend me? thanks, regards

    Without any user prompting, I want to allow or unrestrict silverlight plugin in Safari 7 (OS X maverick), Any code (applescript or xcode) is working fine to do it? or Any automatic or semi-automatic way recommend me? thanks, regards

  • Applescript xcode window

    I am writing a new application in Xcode using applescript.
    I was wondering what button (Connection) I should use for the following action:
    On the main window I want a button that link to a secondary page and when it is pressed the sencond page opens.
    thanks

    For something like preferences, you can create a panel with your various settings, connect it to an outlet property, and in your button handler you can have it act like a modal dialog by using something like:
    current application's NSApp's runModalForWindow_(prefsPanel) -- prefsPanel is the outlet property for a NSPanel

  • AppleScript + Xcode

    I know how to code in AppleScript and how to design an app interface in Interface Builder and in Xcode, but how to do "connect" the applescript scripts to the "core" of my app?

    If you're talking about AppleScript Studio then here are the AppleScript Studio Programming Guide and the AppleScript Studio Terminology Reference
    If you're talking about loading and executing AppleScripts from within a Cocoa application then you need to take a look at the NSAppleScript class reference.
    Steve

  • Search Engine Maybe APPLE?

    These little known facts about Google can hurt Apple i think.
    1.Google is one of the most powerful companies a multimillion dollar empire to say the least could one day supreme leaders.
    2. Googles homepage loads the fastest out of any search engine,I will agree but does it sound like to me a Challenge I think so???
    3.Google has 2 million searches in a second, why couldn't apple beat that by doubling that?
    4. Google owns Youtube, android where as apple well they hold their self so why shouldn't they create a video page such as like youtube?
         My point being Google is great and all I use it as my search engine because its plain jane but what I don't understand is why apple hasn't created a Search Engine 10x better then google because in my eyes nothing beats an APPLE? Apple a day keeps the doctor away they say well I believe that when I don't have to buy Norton security or any of that bull crap, once again why don't Apple create a virus protected Search Engine yeah I know nothing is perfect but a safe search engine would be awesome for them sorry microsoft users lol. Apple you should create a Search Engine Be the number one You are.
    Stay Reliable Search Engine
    Be a Safe Search Engine
    A fast Search Engine
    Fun Search Engine
    Last be an APPLE Search Engine

    This is not the place to discuss what Apple should do.
    Use the feedback links at http://www.apple.com/feedback

  • Illustrator Applescript open command is broken

    Hi, Scripters have been doing many different things with Illustrator over the years. One of the things that allows that is the ability to open the files we need to process. Many things could prevent a file from opening, so the open command has a nifty dialogs parameter, that allows a scripture to ask Illustrator to open a file but regardless of any issues, prevent a dialog from opening. On top of that, Illustrator can be asked to not display any dialogs at all with the user interaction property.
    Alas, the new Illustrator has a missing fonts dialog box that will not go away. It has the TypeKit logo at the top, so many folks, me included, got annoyed with TypeKit, but that was misplaced.
    Adobe: If we can't confidently ask AppleScript to open a file without it, well, not opening, we are kind of screwed.
    Please put someone on this task: When the open command is invoked with the dialogs parameter set to false, do not show the Missing Fonts dialog.
    It has to happen and it has to happen quickly.
    Thanks! Happy-scripters everywhere.

    Aloha Hanaan, me old partner in crime...
    Alas, ill-mannered dialogs have always been a problem with AI. Super annoying, but then I read about all the other horrors Adobe perpetrate on their scripting users and am personally quite glad they leave AI's Apple event support largely alone.
    I'm not familiar with this particular dialog (I'm currently still slumming it on CS6 for development purposes), but I have had the exact same problem in the past with Universal Type Server's "missing font" dialogs, which don't respect any of AI's user interaction settings either. I've even had problems with AI itself throwing up "swatch conflict" dialogs when duplicating content between documents.
    To what extent these missing font dialogs are AI's fault versus the font manager's fault I couldn't say offhand. I'd have to spelunk the AI SDK to see if it provides any hooks for plugins to determine AI's current user interaction settings prior to throwing up dialogs and/or instructs plugin developers to respect those settings, and frankly if I wanted to deal with AI's C* APIs I wouldn't be using its scripting interface in the first place.
    Either way, as W_J_T says, you need to submit a bug report directly to Adobe if you even want them to be aware of the issue. Whether they'll bother to fix it, who can say... the entire AppleScript world ain't exactly blooming with health these days, so I doubt a fix will be high priority assuming it's even practical.
    In the meantime...
    The workaround I used was to create a separate 'dialog monitor' service that my AI scripting code would activate before performing a command known to trigger badly-behaved dialogs, then deactivate again once the troublesome operation was done. While running, the service would use GUI Scripting to poll the state of AI's GUI every second or so, and if it detected the appearance of a dialog would figure out what type of dialog it was and click the appropriate button to dismiss it.
    Obviously, this logic had to be individually coded for each type of dialog encountered, could be a tad fragile (though I did my best to make it cope with stuff like window order changing), and tended to require updating when new versions of software were installed. But it worked well enough
    As this was all running on a headless Mac, I also wrapped the problem command in a try statement that'd catch any "timeout" errors, take a screenshot of AI's UI so I could see what (if any) dialogs were displayed at the time, then kill -9 the AI process and email me a full error report before restarting AI and proceeding onto the next job as normal. That way, any time the system got stuck on a dialog I'd not seen before, I had lots of troubleshooting info available to diagnose the problem and start working on the solution for that.
    Being a Python weenie I just used a background thread to run all this stuff, but as an AppleScripter it shouldn't be any harder for you to write a stay-open 'dialog monitor' applet that does the UI polling from its `idle` handler. Just have your main script run and quit the monitor applet when needed, and mind and have it deal with any timeout errors as appropriate should your dialog monitor be unsuccessful in dismissing a dialog before the command gives up.
    HTH
    has

  • Applescript Studio .. maybe

    Not sure if this goes here but I figure it is the right place to start.
    I am parsing an XML file using applescript
    one of the XML params is a command to be run on the command line.
    normal commands work just fine like
    "ls"
    "drutil eject"
    and the like .. however
    I was testing some more complicated commands and run into an error
    say the command is
    <command>ls -al < /Users/TestFile.txt</command>
    the apple script kicks out with an error I think because of the extra < in the line.
    how do I compensate for this?
    Thanks in advance

    Hello
    In XML document, the U+003C LESS-THAN SIGN and U+0026 AMPERSAND must be properly escaped, except when used as markup delimiters, or within a comment, a processing instruction, or a CDATA section.
    cf.
    http://www.w3.org/TR/xml/
    2.4 Character Data and Markup
    So, you must use &lt; or &#60; instead of < in your shell command text.
    H
    PS. I escaped some characters for posting here and you may be receiving escaped version of this message via subscribed email. However, the intended text is what appears in this web page, not in email text.

  • Turn-Off screen keeps coming up - maybe broken sleep button?

    hey there,
    i got my 3gs on saturday (t-mobile, germany) and it worked great for exactly one day. on sunday i noticed that the phone woke up from time to time showing the turn off screen, which usually appears if you hold down the sleep button for some seconds (red slider at the top).
    after that, the same screen popped up more often, it even interrupts other actions by appearing on top of applications like phone or mail.
    sometimes the phone will make a screenshot of the current screen if i push the home button, so it seems like the sleep key is stuck.
    the phone has no visible damages, the button looks normal and doesn't act jammed.
    all this happens unpredictably so i can't reproduce it, but its happens pretty often by now and is anoying as ****
    i tried restarting the phone, resetting the prefs, resetting everything, restoring in via itunes etc.
    guess is have to send it back, i just wanted to ask for more ideas and leave a mark for other affected users.
    regards
    jan

    Bad news. I got my 3GS Saturday (6/27) at the local Apple Store. By Sunday morning, I noticed the "random" power off slider. Sometimes, the sleep switch works, sometimes it doesn't. It's gotten progressively worse...after less than 72 hours of ownership. I have a case open with Apple and a Genius appointment in 2 days. In the meantime, I suggest you DO NOT power off your phone. Apple had me do a reset (for the 4th time) and the phone would power down DURING the boot. After 10 minutes..and pressing NOTHING, it suddenly started up and ran. The sleep switch is virtually dead. The Apple rep mentioned something about "cracked circuit boards", but did not elaborate. I suspect something in the assembly process is trashing the board the switch is attached to.

  • AppleScript support broken in CS5!

    Following the 'Changes to Photoshop CS5 and Applescript' thread. I'd like to emphasis that AppleScript support is way broken in CS5.
    We have compiled scripts which fail to execute properly. Once this happens, every AppleScript command then fails including trying to compile new commands using the script editor.
    This breaks our application which was working great for years on CS3 and CS4.
    What can be done?

    To reproduce the issue :
    1. Place an "image.tif" on your desktop
    2. Open another image in Photoshop
    3. Run the following script
    tell application "Adobe Photoshop CS5"
    activate
    set masterDocument to current document
    open file ((path to home folder as string) & "Desktop:image.tif")
    height of masterDocument
    end tell

  • New Applescript version breaks old code

    Hi there,
    First off, I'm not an Applescripter, but I have one script I wrote a few years back (with help from kind people on the net) to generate and save tiny applications which, when called from within an Adobe Flash executable, would open the required file using the Mac OS native application associated with them (i.e a doc file wouldbe opened by Word if installed, TextEdit if not...)
    It used to run fine on my old Powerbook G4 on an old version of AppleScript, but times change and, one whizzy Intel processor later, I'm trying to get the same script running on OS 10.8 with AppleScipt 2.5.1, with varied results.
    Basically, what the script should do is read a comma delimited file in the same folder as the script, called 'fileNames.csv' which contains the names of all the files that I want the tiny apps to open. Each item will then have its own file created by the AppleScript, named after each item, which get saved in an pre-existing folder in the same directory as the script and fileNames.csv file, called 'fscommand'.
    The example of the fileNames.csv file I'm having issues with:
    yr2_unit_1_tn.doc,yr2_unit_2_tn.doc,yr2_unit_3_tn.doc ... etc up until  yr2_unit_20_tn.doc
    The script always used to work fine, but the new version of AppleScript seems to have broken it. When I run it now, it creates all the .app files up until 'yr2_unit_11_tn.doc.app' but then stalls in 'Running...' mode in the AppleScipts editor, and refuses to save apps for the final nine files in the .csv file.
    It still runs ok from an older AppleScript editor (2.2.1) but this only saves PowerPC applications, which won't run on Intel Macs. And this would be me running away from the problem, rather than attempting to solve it ;-)
    I'm thinking it's a filename issue, as it always seems to break when attempting to save "yr2_unit_11_tn.doc.app" when "yr2_unit_1_tn.doc.app" already exists in the 'fscommand' folder. If I create a new 'fileNames.csv' file which only contains ten entries from 'yr2_unit_11_tn.doc' to  'yr2_unit_20_tn.doc', and run the script to an empty 'fscommand' folder, it processes all the files fine. It just won't do all twenty entries from 1 to 20.
    Here's the script. I know I'm doing something really stupid here, but as a rock bottom novice AppleScripter, I can't see the error, or why it would work in one version of AppleScript and not another. I can post a link to the zipped files if this is any help in solving it. Thanks in advance for any help! :-)
    tell application "Finder" to get folder of (path to me) as Unicode text
    set cwd to result
    set fileRef to open for access alias (cwd & "fileNames.csv")
    set theList to read fileRef using delimiter ","
    close access fileRef
    set theFolder to alias (cwd & "fscommand")
    set theFolderPath to theFolder as string
    #Create the .app files and save them in theFolder
    set NL to ASCII character 10
    tell application id "com.apple.ScriptEditor2"
    launch
              repeat with theItem in theList
                        set x to make new document
                        set x to the front document
                        set theCharacters to characters of theItem
                        set theReversedCharacters to reverse of theCharacters
                        set theReversedFileName to theReversedCharacters as string
                        set theOffset to offset of "." in theReversedFileName
                        set theReversedSuffix to text 1 thru (theOffset - 1) of theReversedFileName
                        set theSuffix to (reverse of (characters of theReversedSuffix)) as string
                        set the text of document 1 to "tell application \"Finder\"" & NL & "activate" & NL & "set cwd to get folder of container of (path to me) as Unicode text" & NL & "open file (cwd & \"assets:" & theSuffix & ":" & theItem & "\")" & NL & "end tell"
      compile document 1
                        set file_path to theFolderPath & theItem & ".app"
                        save document 1 as "application" in file file_path
      close window 1
              end repeat
    end tell

    That seemed to be it. I put a tiny delay in between saving the document and closing the window and the file runs smoothly through all 20 items.
    compile document 1
    set file_path to theFolderPath & theItem & ".app"
    save document 1 as "application" in file file_path
    delay 0.3
    close window 1
    Never thought that I'd reach the day where I was trying to slow the computer down to process something more carefully :-D

  • How can I make a window transparent but keep its objects opaque in Cocoa-Applescript?

    How can I do this in Cocoa-Applescript, Xcode? As well, is it possible to blur the area behind where the transparent window is?

    You can set the window transparency with something like:
    theWindow's setBackgroundColor:(current application's NSColor's clearColor)
    theWindow's setOpaque:false
    I haven't seen a way using public APIs to blur behind the window, but I'm not sure about using ASObjC with stuff like Core Image, anyway.
    You might also try something like setting the background to a gray color and play with the grayscale and alpha values (colorWithCalibratedWhite:0.0 alpha:0.2, for example).

  • Help needed creating export file from a file layout with Application Engine

    The following is what I would like to do:
    - Read a record from a PS view
    - Manipulate the data as needed
    - Write the fields out to a file as defined by a File Layout
    - Repeat until no more records are found
    I have created the PeopleSoft Application Engine action listed below. It receives an error "BCUNIT is not a property of class File".
    Local Record &rec1;
    Local File &myFile;
    Local SQL &sQL1;
    /* Create instance of Record */
    &rec1 = CreateRecord(Record.W9M_MBSCRSE_VW);
    /* Instantiate the Output File */
    &myFile = GetFile("c:\temp\help_me.txt";, "A", %FilePath_Absolute);
    If &myFile.IsOpen Then
    If &myFile.SetFileLayout(FileLayout.TACOURIN) Then
    /* Create SQL object to populate rowset */
    &sQL1 = CreateSQL("%Selectall(:1) Where INSTITUTION = :2", &rec1, W9M_MBSCRSE_AET.INSTITUTION);
    /* Cycle through the records */
    While &sQL1.Fetch(&rec1)
    /* I know this section is not coded correctly but I'm not sure how to fix it */
    &myFile.BCUNIT = "1";
    &myFile.BCTCD = &rec.W9M_MBS_TERM_CODE;
    &myFile.BCTYR = &rec.W9M_MBS_TERM_YEAR;
    &myFile.BCDPTN = &rec.ACAD_GROUP;
    &myFile.BCCOUR = substring(&rec.CATALOG_NBR,2,5);
    &myFile.BCSEC = &rec.CLASS_SECTION;
    &myFile.WriteRecord();
    End-While;
    Else
    /* Process FileLayout Error here */
    End-If;
    Else
    /* Process File Open Error here */
    End-If;
    &myFile.Close();
    There are probably a lot of things wrong with this approach and if you could provide some guidance and/or  corrections to the above logic I would greatly appreciate it.
    Another approach?
    After doing a bunch of reading on Application Engine maybe my approach is incorrect. Perhaps I should be doing something like the following:
    - Read a record from a PS view
    - Populate a temporary table manipulating data as it is inserted (Temp table is named according to the file layout fields?)
    - Fetch the records from the temp table and write the record to the file layout.
    - Repeat until no more records are found
    Is this approach better and designed correctly? If not, could you recommend how it should be done? Would the population and reading of the Temp table be done in separate actions or within the same action? Do you know of an Application Engine program that can be used as an example with "like" processing?
    As you can probably tell I haven't used Application Engine before and my goal is to start out on the right path. Thank you for any direction and input that you can provide.
    Steve

    I did and my initial logic was based upon them. I don't see where it shows how to manipulate the data before writing it to the file layout fields. Maybe you can send me a link to that section?
    I was hoping that I would be able to reference the file layout fields directly to allow for manipulating the field values. Re-reading the file layout section and the application engine PeopleBooks I believe I need to create a temporary record which matches the file layout fields; i.e., the second alternative that I listed. Then, make my updates to the temp record fields as I load them. Then, load them to the file layout as a row.
    I'm not sure how this would break down in Application Engine; would the insert into the temp table and the writerecord be different steps/actions, etc.

  • How to use (to program) a Scheme in Xcode? (novice programer needs help!)

    How to use (to program) a Scheme in Xcode?
    i have been using Aquaemacs (GNU emacs) with Guile extensions. but i really would like to do all that in Xcode. is it possible? thanks.

    I believe that Scheme is not a language natively supported by Xcode. Maybe there is a way to write a plugin for it, but I don't really think so and in particular I haven't seen one for LISP or Scheme.

Maybe you are looking for

  • "ERROR: Could not read block 64439 of relation 1663/16385/16658: Result too large"

    Hi, I've already archived a lot of assets in my final cut server but since one week there is a message appearing when I click on an asset and choose "Archive". The pop-up says: "ERROR: Could not read block 64439 of relation 1663/16385/16658: Result t

  • Can I create new wip accounting class type?

    What are the differences between wip accounting class types are set? and can I define new types?

  • Save custom prefrence in MDS DB

    Hi I want to save basic user level preferences like show/hide text field, field length etc into MDS repository. These preferences will basically be a key value pair. Is there any MDS api which i could make use of to store these values at user level?

  • Loading External Images

    Hey, I've been having a niggly problem for a while now. I'm using MovieClipLoader and a Listener to load in external images. All the images load in fine, but often (not always) the onLoadInit and onLoadComplete events don't seem to work on the last i

  • Numeric pad instead of qwerty

    Hello, I only got my iphone 3gs on Friday. But, I'm surprised that it's only got a qwerty keybpard for text. How come it hasn't got a numeric pad for predictive text? Is one available anywhere? I love the phone. But it's little niggles like this that