How to add StandardAdditions to Scripting Bridge?

Hey,
I have an Objective-C project, and I want to implement the AppleScript delay "method" (can't think of another name). This is included as a part of StandardAdditions, which unlike several applications doesn't itself have an application preference file, leaving me clueless for my entry of;
StandardAdditions * standardAdditions = [SBApplication applicationWithBundleIdentifier:@"com.apple.StandardAdditions"];
Does anyone have any suggestions of how I would go around using this, without its preference file?
Thanks,
Ricky.

rickydamelio wrote:
I have an Objective-C project, and I want to implement the AppleScript delay "method"
Why? Have you considered the following BSD/Cocoa options:
sleep()
+[NSThread sleep...]
NSTimer
HTH

Similar Messages

  • How to add extra labels into Bridge CS5?

    Hi folks, nice to meet you all.
    I do not want to edit or rename the existing 5 existing labels into Bridge CS5. I just want to create new labels. So, I want to add extra labels to have more than 5 labels.
    Does anybody know how to add extra labels into Bridge CS5? If so, please, tell me how to do it.
    Thanks.

    You should move this post to the new Bridge forum as this one will soon die.  Here is link http://forums.adobe.com/community/bridge/general

  • How to Add an SQL script to another existing SQL script

    I have just created an SQL script and i need a way to join it with several other existing SQL scripts.
    I don't want to change any of the other scipts, i just need to add my new script on to the existing ones.
    I've looked at some of the functions and they don't seem to work for me.
    Let me use this as an example.
    Here is my new script:
    SELECT DISTINCT max(case when EC.EQUIPMENT_CLASS like '%_ERT' then 'Y' else 'N' end) over (partition by E.CURRENT_SERVICE_ID) as ERT
    FROM EQUIPMENT E,
    EQUIPMENT_TYPE ET,
    EQUIPMENT_CLASS EC
    WHERE E.EQUIPMENT_TYPE_ID = ET.EQUIPMENT_TYPE_ID
    and EC.EQUIPMENT_CLASS = ET.EQUIPMENT_CLASS
    and E.CURRENT_SERVICE_ID = 38514
    I need to add this to an existing script such as this:
    SELECT E.EQUIPMENT_NUMBER,
    E.EQUIPMENT_TYPE_ID,
    ET.EQUIPMENT_TYPE_DESC
    FROM EQUIPMENT E,
    EQUIPMENT_CATEGORY ECAT,
    EQUIPMENT_TYPE ET,
    EQUIPMENT_CLASS EC
    WHERE ET.EQUIPMENT_TYPE_ID = E.EQUIPMENT_TYPE_ID
    and EC.EQUIPMENT_CLASS = ET.EQUIPMENT_CLASS
    and EC.EQUIPMENT_CATEGORY = ECAT.EQUIPMENT_CATEGORY
    and E.EQUIPMENT_ID = 113950
    * The Reason why i can't just add the line i need together with the existing script, is because it's giving me invalid data from what i want to see. When i run them separately i get the desired results.
    Not sure if anything can be done like this or not, but if so, i'd appreciate a shove in the right direction.
    thanks

    I have just created an SQL script and i need a way to
    join it with several other existing SQL scripts.
    Do you simply want to append your newly created query to the file that contains an existing query ?
    >
    I've looked at some of the functions and they don't
    seem to work for me.
    Not sure how this is a SQL or PL/SQL related question, you'd probably want to just append the files using a text editor or maybe an OS command like cat or type.
    >
    * The Reason why i can't just add the line i need
    together with the existing script, is because it's
    giving me invalid data from what i want to see. When
    i run them separately i get the desired results.
    You may want to explain how the data is different from what you are expecting. In any case, your queries do not end with the sql terminator - the ";" character or a forward slash "/" at the first column of a line after the query; maybe that's the culprit.
    Consider this:
    SQL>
    SQL> host type c:\t1.sql
    select first_name from employees where rownum = 1
    SQL>
    SQL> @c:\t1.sql
      2  /
    FIRST_NAME
    Ellen
    SQL>
    SQL> host type c:\t2.sql
    select last_name from employees where rownum = 1
    SQL> @c:\t2.sql
      2  /
    LAST_NAME
    Abel
    SQL>
    SQL> host type t3.sql
    select first_name from employees where rownum = 1
    select last_name from employees where rownum = 1
    SQL> -- now, t3.sql contains both the queries of t1.sql and t2.sql
    SQL> -- however, they do not end with the sql terminators
    SQL>
    SQL> @c:\t3.sql
      2  /
    LAST_NAME
    Abel
    SQL> -- the first query was not executed...
    SQL>
    SQL> -- t3.sql has been fixed now
    SQL> host type t3.sql
    select first_name from employees where rownum = 1;
    select last_name from employees where rownum = 1;
    SQL> @c:\t3.sql
    FIRST_NAME
    Ellen
    LAST_NAME
    Abel
    SQL>pratz

  • How To Add a Star in Bridge CS4?

    How does one rate with stars in Bridge CS4? In CS2 you had little dots under each image as they appeared in the column on the right. It was possible to check one, two, three, etc. In CS4 I see the little dots under a selected photo but nothing happens when I click on one.
    Thanks
    avebon

    It works by either "Command 1" or as you suggest, "h1."
    It doesn't work for me by just clicking on the dot.
    >>
    >>
    >> …It was a lot easier just clicking on the dot, wasn't it?
    >
    >
    h1. ?
    >
    It still works as expected, by just clicking on the dot.
    >
    >
    Wo Tai Lao Le
    我太老了
    >

  • How to add Web Gallery in Bridge CS5

    Hi there,
    I am creating a photo album with web gallery in Bridge CS5. I find out that Is it possible to enable vertical scroll in to the portrait pictures? Usually portrait pictures  are too small when they are diminish to the screen. Here is an example of an portrait with vertical scroll, and I think they work better that way. Or what do you think?
    Is it possible to find third party template to Bridge CS5 web gallery software that has scrollable slide area? Or is it possible to make couple of modifications to the basic templates?
    Thanks in advance.
    P.s. Here's one tutorial how to make web galleries with PS CS 5 Bridge.

    You should move this post to the new Bridge forum as this one will soon die.  Here is link http://forums.adobe.com/community/bridge/general

  • How to add or edit scripted patterns?

    I like me a bit of scripting so 'scripted patterns' sounds exciting. Can't figure out where the scripts are stored though?

    And applications/Adobe Photoshop CS6/Presets/Deco on a Mac (since you did not state your platform in the first message )

  • How to add powershell script code in form application in C#

    Hi,
    i am creating a form application in C# and have powershell code which will create remote session on remote machine and execute few commands like set execution policy copy some share files install that files etc.
    I have to add this powershell script into form application in C#.
    Can some one please give me some example how to add the whole script which i have into C# code form application. Thanks in advance
    Thanks,

    Hi
    So the left is Run PowerShell Commands on Remote machine? Am I right ?
    Here  is a article talking about running  powershell commands on Remote Computers.
    http://www.howtogeek.com/117192/how-to-run-powershell-commands-on-remote-computers/
    About how to write in C#, please follow
    Joel Engineer's reply, using  process.Start() method  to start
    PowerShell.exe and Run PowerShell Commands to connect remote machine.
    Best regards,
    Kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Add an inertia script to mask/shape-path keyframes?

    anyone knows how to add an inertia script to mask/shape-path keyframes? OR a workaround that would yield similar results?
    thanks
    manojit

    Since no answer seems to be forthcoming would you recommend that this be a manual test?
    Thanks,
    Eric

  • Bridge CS6: How do you write a script to assign a shortcut to "Batch" and "Image Processor"?

    Many times a day I need to access "Batch" and "Image Processor" in Bridge.
    There is no shortcut, so I have to go the Tools-Photoshop-Batch and Tools-Photoshop-Image Processor menu - the items I need are locked into a second level menu.
    Which is impractical.
    I remember, when I started out with Photoshop many years ago, I downloaded "Deke Keyes" from Deke McClelland, which included keystrokes for "Batch" and "Image Processor".
    From the Bridge forum I learned that you cannot assign shortcuts in Bridge CS6.
    So the general opinon was that a script was used to assign the shortcuts.
    Could you please tell me how to do that?
    Thanks!
    PS: I tried to assign shortcuts via the Mac OS X Mountain Lion keyboard preferences (applications), but it did not work.

    Hi,
    in the exit:Event of the 1st date field add this FormCalc script:
    DateField2 = Num2Date(Date2Num($.formattedValue, "DD.MM.YYYY") + 21, "DD.MM.YYYY")
    You may have to change th date pattern  "DD.MM.YYYY" in the way you need it.

  • How to add a page in the SAP Scripts

    Hi All,
    I want to know how to add a page in the sap scripts. there is already sap script developed by some other person.
    Now I have to add a page in front of that and have to add some more data.I added a page in page windows but thats not at all working.
    Please help me out in this.
    Thanks,
    Praveen

    new page will create in sap scripts using new page command.
    you have to set condition like after some number of records displayed in page new page has to be trigger.
    ex:YOU HAVE SO MANY RECORDS FOR PRINTING BUT YOU WANT TO DISPLAY 100 RECORDS IN FIRST PAGE REMAINING IN SECOND PAGE LIKE THAT.
    Here you can use NEW PAGE COMMAND .
    IT IS OPPOSITE PURPOSE OF PROTECT AND ENDPOTECT.
    Reward if useful.

  • How to add a report into the SAP-SCRIPT .using PERFORM ......ENDPERFORM

    My question is that How to add a report into the SAP-SCRIPT .
    by using PERFORM ......ENDPERFORM
    I don't know how to used it .

    Hi Sandeep,
    Please check this link
    http://help.sap.com/saphelp_40b/helpdata/en/d1/803279454211d189710000e8322d00/content.htm
    http://www.allinterview.com/showanswers/37425.html
    Calling ABAP Subroutines: PERFORM
    You can use the PERFORM command to call an ABAP subroutine (form) from any program, subject to the normal ABAP runtime authorization checking. You can use such calls to subroutines for carrying out calculations, for obtaining data from the database that is needed at display or print time, for formatting data, and so on.
    PERFORM commands, like all control commands, are executed when a document is formatted for display or printing. Communication between a subroutine that you call and the document is by way of symbols whose values are set in the subroutine.
    Syntax in a form window:
    /: PERFORM <form> IN PROGRAM <prog>
    /: USING &INVAR1&
    /: USING &INVAR2&
    /: CHANGING &OUTVAR1&
    /: CHANGING &OUTVAR2&
    /: ENDPERFORM
    INVAR1 and INVAR2 are variable symbols and may be of any of the four SAPscript symbol types.
    OUTVAR1 and OUTVAR2 are local text symbols and must therefore be character strings.
    The ABAP subroutine called via the command line stated above must be defined in the ABAP report prog as follows:
    FORM <form> TABLES IN_TAB STRUCTURE ITCSY
    OUT_TAB STRUCTURE ITCSY.
    ENDFORM.
    The values of the SAPscript symbols passed with /: USING... are now stored in the internal table IN_TAB . Note that the system passes the values as character string to the subroutine, since the field Feld VALUE in structure ITCSY has the domain TDSYMVALUE (CHAR 80). See the example below on how to access the variables.
    The internal table OUT_TAB contains names and values of the CHANGING parameters in the PERFORM statement. These parameters are local text symbols, that is, character fields. See the example below on how to return the variables within the subroutine.
    From within a SAPscript form, a subroutine GET_BARCODE in the ABAP program QCJPERFO is called. Then the simple barcode contained there (u2018First pageu2019, u2018Next pageu2019, u2018Last pageu2019) is printed as local variable symbol.
    Definition in the SAPscript form:
    /: PERFORM GET_BARCODE IN PROGRAM QCJPERFO
    /: USING &PAGE&
    /: USING &NEXTPAGE&
    /: CHANGING &BARCODE&
    /: ENDPERFORM
    / &BARCODE&
    Coding of the calling ABAP program:
    REPORT QCJPERFO.
    FORM GET_BARCODE TABLES IN_PAR STUCTURE ITCSY
    OUT_PAR STRUCTURE ITCSY.
    DATA: PAGNUM LIKE SY-TABIX, "page number
    NEXTPAGE LIKE SY-TABIX. "number of next page
    READ TABLE IN_PAR WITH KEY u2018PAGEu2019.
    CHECK SY-SUBRC = 0.
    PAGNUM = IN_PAR-VALUE.
    READ TABLE IN_PAR WITH KEY u2018NEXTPAGEu2019.
    CHECK SY-SUBRC = 0.
    NEXTPAGE = IN_PAR-VALUE.
    READ TABLE IN_PAR WITH KEY u2018BARCODEu2019.
    CHECK SY-SUBRC = 0.
    IF PAGNUM = 1.
    OUT_PAR-VALUE = u2018|u2019. "First page
    ELSE.
    OUT_PAR-VALUE = u2018||u2019. "Next page
    ENDIF.
    IF NEXTPAGE = 0.
    OUT_PAR-VALUE+2 = u2018Lu2019. "Flag: last page
    ENDIF.
    MODIFY OUT_PAR INDEX SY-TABIX.
    ENDFORM.
    Best regards,
    raam

  • How to add a jpg. watermark to images in bridge?

    I'm trying to work out how to add a jpg. watermark to my images in bridge and also how to batch add the watermark.

    add a jpg. watermark to my images in bridge and also how to batch add the watermark.
    You can't do so in Bridge, only option for a watermark inhere is via the Output Module on a PDF contact sheet.
    Best try this question in the Photoshop forum, they might have better answers because you need to create an action in PS to get what you want.

  • How to add material group in rvinvoice standard script?

    how to add material group in rvinvoice standard script?
    regards

    Hi
    You have to copy the standard script first .
    you need to write External subroutine in layout.
    This is just for basic info..you can search in sdn external subroutines in script..you get so many inputs.
    Thanks

  • Script task how to add date value

    hi
    i have following code i am trying to add date into script task
     Public Overrides Sub CreateNewOutputRows()
            Dim vars As IDTSVariables100
            Dim vars1 As IDTSVariable100
            Dim recordCount As Integer
            Dim rdate As Date
            ' Dim recount As Integer
            '  Dim rcount As Integer = 0
            'Get the record count
            Me.VariableDispenser.LockOneForRead("RecordCount", vars)
            recordCount = CType(vars("RecordCount").Value, Integer)
            ' rdate = CType(vars("CurentDate").Value, Date)
            vars.Unlock()
            Me.VariableDispenser.LockOneForRead("CurrentDate", vars)
            rdate = CType(vars("CurrrentDate").Value, Date)
            ' rdate = CType(vars("CurentDate").Value, Date)
            vars.Unlock()
            'Me.VariableDispenser.LockOneForRead("rcount", vars)
            'rcount = CType(vars("rcount").Value, Integer)
            'vars.Unlock()
            '  rcount = rcount + 1
            'Output one row with record count
            Output0Buffer.AddRow()
            Output0Buffer.FooterRow = String.Format("ABC" & recordCount & rdate)
            Output0Buffer.SetEndOfRowset()
    in SSIS i have declare CurrentDate in datetime and i need to use it here , but i am getting error.
    how to append its value to       Output0Buffer.FooterRow = String.Format("ABC" & recordCount & rdate)
    its in vb ,i dotn know anything about VB ,please help me.
    i havent put anything in  readonly,readwrite in script task.ecordCount is working but i did same  for rdate and its not working

    how to get that value in yyyymmddhhmmss format in ssis.
    whats expression i need to use.
    also how to give single  space here between recordcount and variables.rdate
    Output0Buffer.FooterRow = String.Format("ABC" & recordCount & Variables.rdate)

  • How to use AS's "make new" command in Scripting Bridge?

    Anybody know how to rewrite this line of Applescript in Cocoa using the Scripting Bridge?
    tell application "iTunes" to make new playlist with properties {name:"Some Name"}
    I'd hate to have to embed AS into my app just for this thing.
    Is there maybe some page in the documentation on Applescript object allocation in Scripting Bridge that I'm missing?
    Thanks in advance.

    If you have the Time Capsule setup in Bridge Mode as you indicate, the ethernet ports are all equal and they will behave just like a normal ethernet "switch".
    If you've double checked to make sure that you have a good ethernet cable and you don't have a connection at the WAN port, but do on the other LAN ports, unfortunately the WAN port is defective.

Maybe you are looking for

  • Regarding selection screen fields in Service PO Report

    Hello All,    I have developed a Service PO Report with input parameters like Purch. Organisation, Material Group, Purchasing Group, Plant, PO No., Vendor, Activity, Entry Sheet No., GR No. I have used the tables ekko, ekpo, ekbe, essr, ml_esll, mseg

  • How do you save your music from the iPod to your pc

    I just purchased the new 5th gen ipod touch. I would like to save the music on my old 4th gen ipod onto my computer. How do I do that?

  • Missing characters keyboard

    Hi, i can't find mathematics operators such as , , exc. Is there a way to write them by keyboard without externals apps?

  • Formel  in Query Designer

    Hello Gurus, someone some Docus about the Mathematic operations in Query Designer 7.0?? THANX... barish

  • Charts in Web VI not using current data - lag, delayed

    Hi, I'm using Labview to generate a "web portal" for viewing some realtime information coming from a number of machines. The machines report power system frequency from a number of sites and display the current measurement as an ASCII readout on the