Simple AppleScript access to ObjC (XCode) program

Hello
I have written an application (in Objective C) which works correctly, and I want to make it scriptable.
- I have configured variables in application.plist file in order to make this app scriptable
- I have included Standard suite to my Sdef file (including count command and window class) (copied from the file: CocoaStandard.sdef located in Systeme/Bibliotheque/ScriptingDefinitions/
I tried to find out why I do not get any Answers to my script.
Then I wrote a simple script:
tell application "/Users/guydesbief/Library/Developer/Xcode/DerivedData/SolarMaxOsX-cgcuhyptmpmt iegixfnbbhpexjhn/Build/Products/Debug/SolarMaxOsX.app" (Which is the app I have developped)
    set theWindows to windows
This script compiles correctly in AppleScript Editor
On execution:
The app (SolarMaxOsX) opens correctly, with its first window opened and active
And then I get this answer:
Erreur dans SolarMaxOsX : Il est impossible d’obtenir every window.
I am afraid there is something wrong to reach my application
My ObjC project windows controllers are instantiated in appDelegate class (AppDelegate.m and .h files) (the one which is connected to owner of GUI)
See the first Window GUI as follows:
In addition, when I want to activate a button in a window, it does not work.
As I work under Maverick, I suppose that I have to activate GUI access to other applications, and it is not clear for me, what I have to do for this activation.
Thanks
OS X 10.9.5 (13F34) (Maverick)
XCode Version 6.1 (6A1052d)
Script editor Version 2.6.1 (152.1)
AppleScript 2.3.2

As always, with these kinds of connection issues, be sure to use Safari Mac and Safari's 'Empty Caches' menu to see if that helps clear the cruft.
For further discussions, please use the confidential forums created for this purpose:
iOS 5 beta
If it is a matter of getting to everything but forums, I suggested you review your contracts in the Member Center _and_ in iTC as well as confirming you are using the correct login if you in fact have multiple Apple IDs.

Similar Messages

  • Querying the Mission Control Desktop that is currently showing (AppleScript, ASOC, or OBJC)?

    Does anyone know a way in Lion to query which Mission Control Desktop is currently showing, when using either AppleScript, ASOC, or OBJC?
    I want to write a utility (either a script or a program) whose behavior depends on which Desktop is currently showing on the screen.
    Any ideas?
    Thanks in advance.

    I'm re-asking this question (see above), this time for the Mountain Lion environment.
    Any ideas? Thank you very much.

  • Access wireless set-up program for HP 3050 printer

    I'm trying to connect an HP Deskjet 3050 J610 printer to my wireless network.  It's an older model so the CD that came with it is not compatible with OS X 10.9.1, but the printer driver is already loaded in the operating system.  So I'm able to print using the USB cable but when I try to connect with my Belkin router via WPS the printer won't connect because it has a pre-assigned SSID.  I'm unable to find any configuration program on the computer that would allow me to change the SSID on the printer manually.  So far HP has been no help so I'm hoping the Apple community might have a few more answers.

    Usually this is the case but this is a rather old printer.  It has no way to access a set-up program via the printer, only WPS capability.  That's why I'm wondering if there is a way to access it via the computer.  Mavericks has the driver built in but doesn't seem to have a way to access the printer set-up.

  • When I close Photoshop CS6, the following message appears: "Could not save Preferences because the file is locked, you do not have necessary access permissions, or another program is using the file.

    When I quit Photoshop CS6, the following message appears:
    " Could not save Preferences because the file is locked, you do not have necessary access permissions, or another program is using the file. Use the ‘Get Info’ command in the Finder to ensure the file is unlocked and you have permission to access the file. If the problem persists, save the document to a different file or duplicate it in the Finder."
    If I try to change the Workspace in PS6 from Essentials to any other Workspace, the following messsage appears:
    "Could not apply the workspace because the file is locked, you do not have necessary access permissions, or another program is using the file. Use the ‘Get Info’ command in the Finder to ensure the file is unlocked and you have permission to access the file. If the problem persists, save the document to a different file or duplicate it in the Finder."
    I have checked the Sharing and Permissions section of the "Get Info" panel accessed from the Finder and I have set Read and Write Privileges for my user account for Photoshop CS6. System and Admin are also set to Read and Write.
    I have a MacBook Pro with OS X Version 10.9.5 and have all available updates for Photoshop CS6, Lightroom 5 and Bridge CS6.
    I tried uninstalling the program and downloading it again and reinstalling, but nothing changed.
    Can you help?
    Thanks,
    cjpnm

    You may get better help in Photoshop General Discussion
    The Cloud forum is not about using individual programs
    The Cloud forum is about the Cloud as a delivery & install process
    If you will start at the Forums Index https://forums.adobe.com/welcome
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right (where it says All communities) to open the drop down list and scroll
    If FINDER means Mac, read below (and try to give more information when asking a question)
    Mac 10.9.3 workaround https://forums.adobe.com/thread/1489922
    Enable Mac Root User https://forums.adobe.com/thread/1156604
    -more Root User http://forums.adobe.com/thread/879931
    -and more root user http://forums.adobe.com/thread/940869?tstart=0

  • Photoshop won't start: Could not open a scratch file because the file is locked, you do not have necessary access permissions, or another program is using the file.

    Adobe Photoshop CS6 Extended
    "Could not open a scratch file because the file is locked, you do not have necessary access permissions, or another program is using the file."
    I've tried finding and checking and fixing permissions but no success.
    This happened from one day to the next. I think it has to do with the sn attached to the disk rather then the motherboard. I have the suite co-installed with Symphony 5.05. I've tried reinstalling.
    What's to b done? The rest of the Creative Suite 6 (AE, AI etc.) works fine.
    Anyone...?
    Loui

    Have you tried restoring the Preferences yet?

  • I can't Start, Uninstall or Install new iTunes. I'm getting the same error message: Window Installer Service could not be accessed.  No other programs have similar problem. Any suggestion what can be done?

    I can't Start, Uninstall of Install new iTunes. I'm getting the same error message: "Window Installer Service could not be accessed". No other programs having similar problem. Any suggestions how to fix it?

    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down the page in case one of them applies.
    The further information area has direct links to the current and recent builds in case you have problems downloading, need to revert to an older version or want to try the iTunes for Windows (64-bit - for older video cards) (not for XP) release as a workaround for installation or performance issues, or compatibility with QuickTime or third party software.
    Your library should be unaffected by these steps but there are also links to backup and recovery advice should it be needed.
    tt2

  • Could not save Preferences because the file is locked, you do not have necessary access permissions, or another program is using the file. Use the 'Get Info' command in the Finder to ensure the file is unlocked and you have permission to access the file.

    I have this massage every time close ps cc
    Could not save Preferences because the file is locked, you do not have necessary access permissions, or another program is using the file. Use the ‘Get Info’ command in the Finder to ensure the file is unlocked and you have permission to access the file. If the problem persists, save the document to a different file or duplicate it in the Finder.

    You may get better help in Photoshop General Discussion
    The Cloud forum is not about using individual programs
    The Cloud forum is about the Cloud as a delivery & install process
    If you will start at the Forums Index https://forums.adobe.com/welcome
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right (where it says All communities) to open the drop down list and scroll
    If FINDER means Mac, read below (and try to give more information when asking a question)
    Mac 10.9.3 workaround https://forums.adobe.com/thread/1489922
    Enable Mac Root User https://forums.adobe.com/thread/1156604
    -more Root User http://forums.adobe.com/thread/879931
    -and more root user http://forums.adobe.com/thread/940869?tstart=0

  • Installer has insufficinent privileges to access this directory c:\program files\ipod\bin log on as administrator

    I'm getting this error when I try to install the newest version of Itunes.  I have tried so many things.  Please help.
    installer has insufficinent privileges to access this directory c:\program files\ipod\bin log on as administrator

    Okay.
    Let's try running a disk check (chkdsk) over your C drive.
    XP instructions in the following document: How to perform disk error checking in Windows XP
    Vista instructions in the following document: Check your hard disk for errors
    Windows 7 instructions in the following document: How to use CHKDSK (Check Disk)
    Select both Automatically fix file system errors and Scan for and attempt recovery of bad sectors, or use chkdsk /r (depending on which way you decide to go about doing this). You'll almost certainly have to schedule the chkdsk to run on startup. The scan should take quite a while ... if it quits after a few minutes or seconds, something's interfering with the scan.
    Does the chkdsk find/repair any damage? If so, can you get an install to go through properly afterwards?

  • "insufficient privileges to access this directory C:/Program Files(x86)/iTunes/iTunes.Resources/nb.Iproj."

    I'm using a Windows 8 laptop and I updated my iphone 4s software to IOS7 and of course my itunes needs updating, but when I go to update it is in vain because it comes up with the message that the installer has insufficient privileges to access this directory C:/Program Files(x86)/iTunes/iTunes.Resources/nb.Iproj.
    and the installation cannot continue. I have tried changing the security permissions on this file which doesn't let me as it asks that I need Read Permissions etc...
    Has anyone encountered this issue, I've looked online but nothing helps for my situation

    If you can't delete the .lproj folders try renaming them or deleting/renaming a parent folder, i.e. \iTunes\iTunes.Resources or \iTunes.
    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down the page in case one of them applies.
    Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
    tt2

  • Create a table and upload data in MS ACCESS from SAP ABAP programming?

    Hi All,
    How to create a table in MS ACCESS database and Upload SAP database table data into MS ACCESS table using ABAP programming?
    Explain: My client requirement is " If he/she runs a ABAP Program, that will create a table and upload data into MS ACCESS Database table in background. "
    Could you please give the solution or code? I know the program RIACCESS and I went through the SAP Note 583698.
    Is this only solution for this?  Or Any other possibilities?
    Please give me solution.
    Thanks in advance.

    Hi,
    It is not possible to create tables in a non SAP schema from inside SAP.
    The SAP-Oracle license also does not allow you to create the table (see note 581312):
    the following actions, among other things, are therefore forbidden at database level:
    Creating database users
    Creating database segments
    Querying/changing/creating data in the database
    Using ODBC or other SAP external access methods
    Please refer following link,
    [Ckick Here|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do]
    You can also do it by LSMW,
    If you are using Access 97, you can download directly into an access
    database from SAP. See program RIACCESS for details. You have to establish
    an RFC destination PS_ACCESS_1 and 2.
    There are then a couple of function modules. Go to SE37 and put in
    msaccess and hit PF4.
    The following is from the readme file: sapgui/ps/readme.sap
    For the MS-Access interface SAP delivers 4 files:
    WDPSASTR.EXE This is an RFC server program that is called by SAP R/3
    (PS module). This program creates a MS Access database. The structure
    information of the tables is transferred from R/3. In addition to
    these tables a table named DDIC is created. This table contains the
    structure information and should in no case be modified or deleted.
    WDPSATAB.EXE This is an RFC server program that is called by SAP R/3
    after WDPSASTR. This program filles the tables of the database with data.
    There must not be made any changes of the structure of
    the tables between the calls of WDPSASTR and WDPSATAB.
    WDPSAZET.EXE This is an RFC client program that triggers work/time
    confirmations in the PS module of SAP R/3 (like transaction CN27 Collectiv
    confirm).
    WDPSAMAT.EXE This is an RFC client program that triggers material
    confirmations in the PS module of SAP R/3 (like transaction MB1A - Goods
    Please also refer following links,
    [Click here|Upload data from MS Access tables, to SAP tables.;
    Before using the program "RIACCESS", you need to install the PS utilities, which are part of SAPGUI install CD.
    It is available in the "SAPGUIPS directory".
    Then do the followings :
    1. Select transaction code SALE -> Systems in network-> Define RFC Destination.
    2. You will need two RFC destinations (TCP/IP connections for the front-end workstation).
    Setup the two RFC destinations PS_ACCESS_1 and PS_ACCESS_2 and you'll have to get them to point to
    wdpsastr.exe and wdpsatab.exe respectively.
    3. Then execute RIACCESS and choose PS_ACCESS_1 to generate access tables.
    The system must also be able to access the RFC-DLL files (librfc2.dll, librfc3.dll, librfc4.dll, librfc5.dll, librfc6.dll, vrfc.dll).
    Please note that Access only supports tables with up to 255 fields.

  • I can't update my itunes and it shows me this message: The installer has insufficient privileges to access this directory: C:/program files/itunes. The installation cannot continue. Log on as administrator or contact your system administrator

    i can't update my itunes and it shows me this message: The installer has insufficient privileges to access this directory: C:/program files/itunes. The installation cannot continue. Log on as administrator or contact your system administrator

    Hello PamelaFox14,
    Thank you for using Apple Support Communities.
    It sounds like you need to log in as the administrator to update the iTunes application properly.
    Take a look at this article named:
    Trouble installing iTunes or QuickTime for Windows
    http://support.apple.com/kb/HT1926
    This section in particular:
    1. Make sure you have administrator account access
    To install iTunes or QuickTime software, you need to be logged in as an administrator on the computer. If you're not sure if you have administrator account access, you may find this Microsoft article helpful:
    Windows 7: How do I log on as an administrator?
    Otherwise, refer to the Help documentation from Microsoft, contact your IT department, or visitsupport.microsoft.com for more information.
    All the best,
    Sterling

  • Trying to install iTunes 10.7 fails - "The installer has insufficient privileges to access this directory: C:\Program Files (x86)\common\files\apple\MobileDeviceSupport\Sync Services\....\Windows

    I am trying to install iTunes 10.7 and keep getting this error message (I am running Win 7 Ultimate 64 bit):
    "The installer has insufficient privileges to access this directory: C:\Program Files (x86)\common\files\apple\MobileDeviceSupport\Sync Services\....\Windows"
    There seem to be other threads that deal with other permission errors, those fixes did not work for this.
    Thanks

    That one's consistent with disk/file damage. The first thing I'd try with that is running a disk check (chkdsk) over your C drive.
    XP instructions in the following document: How to perform disk error checking in Windows XP
    Vista instructions in the following document: Check your hard disk for errors
    Windows 7 instructions in the following document: How to use CHKDSK (Check Disk)
    Select both Automatically fix file system errors and Scan for and attempt recovery of bad sectors, or use chkdsk /r (depending on which way you decide to go about doing this). You'll almost certainly have to schedule the chkdsk to run on startup. The scan should take quite a while ... if it quits after a few minutes or seconds, something's interfering with the scan.
    Does the chkdsk find/repair any damage? If so, can you get an install to go through properly afterwards?

  • Help to create simple Applescript

    Hi, hopefully somebody will be able to help me with a simple Applescript.
    I want to be able to drag a pdf file onto a desktop icon, enter a new filename into a dialogue box and for the file to be copied to a specific folder. It will only be pdf files, and I want it to automatically append the .pdf extension.
    Could sombody possibly point me in the right direction? Thanks in advance.

    Oops, forgot one more check. If a file exists with the same name as the original file, then it will error when you duplicate it. One way to solve that is to duplicate in place. Then "copy" is added to the name. You then move the file to the destination folder and probably there is no file with "copy" in its name.
    property folder_location : (path to desktop)
    property folder_name : "Files"
    on open these_items
    -- added check for main folder
    tell application "Finder"
    try
    set main_folder to (folder folder_name of folder_location) as alias
    on error
    set main_folder to (make new folder at folder_location with properties ¬
    {name:folder_name})
    end try
    end tell
    repeat with this_item in these_items
    set n to name of (info for this_item)
    if n ends with ".pdf" then
    set temp_prompt to "Enter a name for duplicate of " & n & ":"
    repeat
    display dialog temp_prompt default answer "name"
    set new_name to (text returned of result) & ".pdf"
    tell application "Finder"
    if not (exists file new_name of main_folder) then
    set the_duplicate to (duplicate this_item) as alias
    move the_duplicate to main_folder
    set name of the_duplicate to new_name
    exit repeat
    else -- inform user to enter a different name
    set temp_prompt to "Enter a different name. The name " & new_name & " is used."
    end if
    end tell
    end repeat
    end if
    end repeat
    end open
    Otherwise, What I usually do is create a empty temp folder for doing renaming, but then it gets more complicated. For now, just don't use "copy" in names.
    gl,

  • Trying to download ITunes latest version on my Windows XP and I get this message "The installer has insufficient privileges to access this directory: C:\Program Files\ITunes.  The installation cannot continue. HELP!!

    Trying to download ITunes latest version on my Windows XP and I get this message:  "The installer has insufficient privileges to access this directory: C:\Program Files\ITunes.  The installation cannot continue.  Log on as administrator or contact your system administrator."  HELP?

    Hello PamelaFox14,
    Thank you for using Apple Support Communities.
    It sounds like you need to log in as the administrator to update the iTunes application properly.
    Take a look at this article named:
    Trouble installing iTunes or QuickTime for Windows
    http://support.apple.com/kb/HT1926
    This section in particular:
    1. Make sure you have administrator account access
    To install iTunes or QuickTime software, you need to be logged in as an administrator on the computer. If you're not sure if you have administrator account access, you may find this Microsoft article helpful:
    Windows 7: How do I log on as an administrator?
    Otherwise, refer to the Help documentation from Microsoft, contact your IT department, or visitsupport.microsoft.com for more information.
    All the best,
    Sterling

  • TS3212 The installer has insufficent privileges to access this directory C:\Program Files (x86)\iTunes.  Log on as administrator or contact your system administrator

    Itunes would not open. Deleted it and tried to reinstall it.  Got message "The installer has insufficient privildges to access the directory :C:\Program Files (x86)\itunes.  The installation cannont continue.  Log on as administrator or contact you sysytem administrator.  Suggestions?

    Okay.
    Let's try running a disk check (chkdsk) over your C drive.
    XP instructions in the following document: How to perform disk error checking in Windows XP
    Vista instructions in the following document: Check your hard disk for errors
    Windows 7 instructions in the following document: How to use CHKDSK (Check Disk)
    Select both Automatically fix file system errors and Scan for and attempt recovery of bad sectors, or use chkdsk /r (depending on which way you decide to go about doing this). You'll almost certainly have to schedule the chkdsk to run on startup. The scan should take quite a while ... if it quits after a few minutes or seconds, something's interfering with the scan.
    Does the chkdsk find/repair any damage? If so, can you get an install to go through properly afterwards?

Maybe you are looking for

  • Publish a file content as portlet

    Hi I need to see the content of an HTML file directly in a portal page. I used an html portlet with an iframe to the url portlet but it contains bug if the access right on the page the file is uploaded into is more restrictive than the acces right th

  • CS6 Software won't open

    I had recently bought a used macbook on ebay, and the seller claimed it came with CS6 software. He send an activation code and serial number with the laptop. It was fine for about 2 months. Adobe application manager would open when I would open any o

  • Generate IDOC with status lanced (03)

    Hello, I need to generate IDOC with status lanced. I don't need program like RSEOUT00 but a module function. Thnx.

  • Relation between RV61A structure and VBRP,VBRK,KONV

    Hi Gurus, My requirement is i need to get RV61A -KOEIN values.Currently i have tables VBRP,VBRK and KONV which i have connected . Now i need a relation to connect RV61A with either of these tables. Also i need to connect tables KOMP-NETWR , KOMK-WAER

  • How to make ESXI 5.5 See my RAID in HP SFF 8300

    how to make ESXI 5.5 See my RAID in HP SFF 8300  i'm create RAID in HP SFF 8300 and when install ESXI 5.5 can't see my RAID  but when install windows  server 2012 can see my RAID  ESXI see my 2 Hard disk only not see my RAID