Packagemaker: need to run applescript from postflight script

Does anybody makes packages using Packagemaker? I need to run applescript from postflight shell script. Generally, when we need to run applescript or any application from shell script we write:
#!/bin/sh
open /Path/to/applscrpt.app
But what to do if all scripts (shell, app's) placed in MyPackage.pkg/Contents/Resources? What path I need to specify? This way:
#!/bin/sh
open ./Contents/Resources/applscrpt.app
doesn't work...

The $1 argument that gets passed to your postflight script by the Installer should contain the full path to the package that's currently being installed. So something like this should work...
#!/bin/sh
open "$1/Contents/Resources/applscrpt.app"
Here is some additional info about args and environment variables available to your scripts.
Steve

Similar Messages

  • Asset Accurie dat 01.04.2010 but i need tu run Depriciation from 31.05.2010

    I Acquired asset on 01.04.2010 but i need to Run Depreciation from 31.05.2010 what steps need to do for blocking of 2 months
    Regards
    Varyb

    Hi,
    check the Capitalization date in Asst Master for perticular month from which you want to run the Deprecation, by this you need not block anything or else run the dep for that perticuar Asst  by changing to unplaaned Posting run in AFAB.
    Thanks
    Goutam

  • Need to run midlet from another midlet

    Need to run midlet from another midlet
    How to do it?
    In my midlet user get link to web-page, and i want to start mobile browser with this page.

    Hi,
    In order to run midlet from another midlet you may use push registry. Go through the API of that I am not sure but as far as I know push registry is the only solution to that
    Sunil
    Software Developer - J2ME

  • I need to get error from sql script launched from class

    Hello.
    I need to run a bat file (windows xp) inside a PL/SQL procedure and I must check the codes returned by the command.
    I am trying with these files:
    comando.bat
    sqlplus -s fernando/sayaka@ferbd %1
    exit /Bkk.sql
    whenever sqlerror exit sql.sqlcode rollback
    declare
      v_res number;
    begin
      select 1
           into v_res
           from dual
       where 1=2;
    end;
    exit sql.sqlcodeEjecutarProcesoSOreturn.java
    import java.lang.Runtime; 
    import java.lang.Process; 
    import java.io.IOException; 
    import java.lang.InterruptedException;   
    public class EjecutarProcesoSOreturn
        public static int ejecuta(java.lang.String  arg0, java.lang.String arg1)
            java.lang.String[] args= new String[2];
            args[0]=arg0;
            args[1]=arg1;
            int ret = 0;
            System.out.println("En ejecuta");           
            try
                /* Se ejecta el comando utilizando el objeto Runtime
                y Process */               
                Process p = Runtime.getRuntime().exec(args);      
                try
                    /* Esperamos la finalizacion del proceso */                 
                    ret = p.waitFor(); 
                    //ret = p.exitValue();                
                catch (InterruptedException intexc)
                    System.out.println("Se ha interrumpido el waitFor: " +  intexc.getMessage());
                    ret = -1;            
                System.out.println("Codigo de retorno: "+ ret);    
            catch (IOException e)
               System.out.println("IO Exception de exec : " +               e.getMessage());              
               e.printStackTrace();          
               ret = -1;            
            finally
               return ret;
        public static void main(java.lang.String[] args)
            System.out.println("En main");  
            System.out.println("args[0] " + args[0]);           
            System.out.println("args[1] " + args[1]);   
            ejecuta(args[0], args[1]);
    }  When I launch the script from a console I get:
    D:\Ejercicios_Oracle\BATCH_SCRIPTS>comando.bat @kk.sql
    D:\Ejercicios_Oracle\BATCH_SCRIPTS>sqlplus -s fernando/sayaka@ferbd @kk.sql
    declare
    ERROR en lÝnea 1:
    ORA-01403: no se han encontrado datos
    ORA-06512: en lÝnea 4
    D:\Ejercicios_Oracle\BATCH_SCRIPTS>exit /BAnd if I check the errorlevel I get:
    D:\Ejercicios_Oracle\BATCH_SCRIPTS>echo %errorlevel%
    1403When I run it the class I get:
    D:\Ejercicios_Oracle\BATCH_SCRIPTS>java EjecutarProcesoSOreturn comando.bat @kk.sql
    En main
    args[0] comando.bat
    args[1] @kk.sql
    En ejecuta
    Codigo de retorno: 0And if I check the errorlevel I get:
    D:\Ejercicios_Oracle\BATCH_SCRIPTS>echo %errorlevel%
    0How can I get the code 1403 returned from the class?
    Thanks in advance.

    I am trying to extract the error code from the Process.getInputStream() but it seems as if I do not have some privileges.
    This is my class right now:
    import java.lang.Runtime; 
    import java.lang.Process; 
    import java.io.IOException; 
    import java.lang.InterruptedException;   
    import java.io.BufferedReader;
    import java.io.InputStreamReader;
    import java.io.InputStream;
    public class EjecutarProcesoSOreturn
        public static int ejecuta(java.lang.String  arg0, java.lang.String arg1)
            java.lang.String[] args= new String[2];
            args[0]=arg0;
            args[1]=arg1;
    int ret = -100;
            //System.out.println("En ejecuta");           
            try
                /* Se ejecuta el comando utilizando el objeto Runtime y Process */     
                Process p = Runtime.getRuntime().exec(args);      
    ret = -101;   
                try
                    /* Esperamos la finalizacion del proceso */                 
                    ret = p.waitFor(); 
                    //ret = p.exitValue();
                    InputStream bis = p.getInputStream();
                    InputStreamReader isr = new InputStreamReader(bis);
                    BufferedReader br = new BufferedReader(isr);
                    String line = null;
                    String msg = null;
                    String errCode = null;
                    boolean oraError = false;
    ret = -102;   
                    while ( (line = br.readLine()) != null)   
                      //System.out.println(line);
                      if ((line.length() >= 5) & (!oraError))
                        msg = line.substring(0,4); 
                        if (msg.equals("ORA-"))
                             oraError = true;
                             errCode = line.substring(4,9);
    ret = -103;   
                          //System.out.println(errCode);
                          ret = Integer.parseInt(errCode);;
                catch (InterruptedException intexc)
                    //System.out.println("Se ha interrumpido el waitFor: " +  intexc.getMessage());
                    ret = -1;            
            catch (IOException e)
               //System.out.println("IO Exception de exec : " +               e.getMessage());              
               //e.printStackTrace();          
               ret = -1;            
            catch (Exception e)
               //System.out.println("IO Exception de exec : " +               e.getMessage());              
               //e.printStackTrace();          
               ret = -104;            
            finally
               //ret = -100;   
               System.out.println("Codigo de retorno: "+ ret);
               return ret;
        public static void main(java.lang.String[] args)
            System.out.println("En main");  
            System.out.println("args[0] " + args[0]);           
            System.out.println("args[1] " + args[1]);   
            ejecuta(args[0], args[1]);
    }  And when I call the main method with these parameters then I get:
    D:\Ejercicios_Oracle\BATCH_SCRIPTS>java EjecutarProcesoSOreturn d:\comando.bat @d:\kk.sql
    En main
    args[0] d:\comando.bat
    args[1] @d:\kk.sql
    Codigo de retorno: 1403I have this pl/sql function:
    CREATE OR REPLACE FUNCTION FERNANDO.EjecutarProcesoSOreturn (param1 VARCHAR2, param2 VARCHAR2) return NUMBER
    AS LANGUAGE JAVA  name 'EjecutarProcesoSOreturn.ejecuta(java.lang.String, java.lang.String) return java.lang.int';I have granted some privileges to the user FERNANDO:
    begin
        dbms_java.grant_permission
        ('FERNANDO',
         'java.io.FilePermission',
         'd:\comando.bat',
         'execute');
        dbms_java.grant_permission
        ('FERNANDO',
         'java.lang.RuntimePermission',
         'writeFileDescriptor' );
        dbms_java.grant_permission
        ('FERNANDO',
         'java.lang.RuntimePermission',
         'readFileDescriptor' );
        dbms_java.grant_permission
        ('FERNANDO',                   
         'java.io.FilePermission',    
         'd:\*',               
         'read,write');
    end;
    /and when I try the function, I get:
    SQL> DECLARE
      2    RetVal NUMBER := 0;
      3    PARAM1 VARCHAR2(200);
      4    PARAM2 VARCHAR2(200);
      5 
      6  BEGIN
      7    PARAM1 := 'd:\comando.bat';
      8    PARAM2 := '@d:\kk.sql';
      9 
    10    RetVal := EJECUTARPROCESOSORETURN ( PARAM1, PARAM2 );
    11    dbms_output.put_line('RetVal: '||RetVal);
    12    --ROLLBACK;
    13  END;
    14  /
    RetVal: -102Could you please tell me what my problem is?

  • Running AppleScript from Mail rules

    Hi.
    I'm pretty new to this, so sure it's a basic question....
    I've created An AppleScript that calls an Automator application.  This runs fine if I open the script in the editor and click run.
    I've now created a mail rule which should run this script if a mail is received with defined subject, but it doesn't....
    Whatever I try, it's just not running the script.
    Any help?

    Yes.
    tell application "iTunes"
      quit
    end tell
    delay 60
    tell application "iTunes"
      activate
    end tell
    Change 60 seconds in delay to the delay you need.
    (still might not work as a Mail Rule, but give it a try)

  • Local Intranet App needs to run app from web page

    I have a vb.net executible app that resides on a group of users on our local network and I want to integrate an ASP.Net website that is also local to our internal users so they can select an item on the web page and it would open the executable passing in
    a parameter to the app (the vb.net app currently accepts these command line parameters I want to pass in).
    I have tried several types of examples ranging from ActiveXObject("WScript.Shell") in JS to Response.ConetentType in code behind. Although there are several posts saying you can run the shell command, I am not having any luck. All users have Win
    7 Pro with IE8 and IE10.
    I know this is not a good way to do this, but I need to show a proof of concept, and just need to show it can work. I would like to ultinmately create an Accelerator of Add-in that could do this properly.
    Can anyone provide some help please?
    Here is snippets of code tried:
    code behind page with Grid of records:
    Private Sub GridView1_SelectedIndexChanged(sender As Object, e As EventArgs) Handles GridView1.SelectedIndexChanged
        Response.Clear()
        Dim AppPath As String = "\\\\MyPC\\MyShare\\Winforms.exe"
        Dim TestApp As String = System.IO.Path.GetFileName(TripleAPath)
        Response.ContentType = "application/octet-stream"
        Response.AddHeader("content-disposition", "filename=" + TestApp)
        Response.TransmitFile(AppPath)
        Response.End()
    End Sub
    And here is the js scriptmanager example I am trying to run from a button click. I get error about shell failure:
    Specifically automation error cannot create object, and here is the line in break mode:
    <script type="text/javascript"> function OpenApp() {var ws = new ActiveXObject("WScript.Shell"); ws.Exec("g:\\Winform.exe");} </script>
    And here is the code:
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
        ' Define the name and type of the client script on the page. 
        Dim csName As [String] = "ButtonClickScript"
        Dim csType As Type = Me.[GetType]()
        ' Get a ClientScriptManager reference from the Page class. 
        Dim cs As ClientScriptManager = Page.ClientScript
        ' Check to see if the client script is already registered. 
        If Not cs.IsClientScriptBlockRegistered(csType, csName) Then
            Dim csText As New StringBuilder()
            csText.Append("<script type=""text/javascript""> function OpenApp() {")
            csText.Append("var ws = new ActiveXObject(""WScript.Shell""); ")
            csText.Append("ws.Exec(""g:\\Winform.exe"");")
            csText.Append("} </script>")
            cs.RegisterClientScriptBlock(csType, csName, csText.ToString())
        End If
    End Sub
    <input id="Button1" type="button" value="Click to open App" onClick="OpenApp()"/></p>
    Daniel R Gleason

    Hi Daniel,
    this forum is for questions about html, css and scripting for website development.
    I have a vb.net executible app that resides on a group of users on our local network and I want to integrate an ASP.Net website that is also local to our internal users so they can select an item on the web page and it would open the executable passing in
    a parameter to the app (the vb.net app currently accepts these command line parameters I want to pass in).
    I think an ActiveX control or a hosted WBC in your VB.net app are the only viable solutions.
    Rob^_^

  • Need to run RemoteDesktop from JSP file, WebServer Running in Linux.

    Hi All,
    i want to run a RemoteDesktop(.RDP) from a JSP page, webserver is running on Linux.
    Like i am having abc.rdp file, when i am invoking this file from the jsp, it is displaying the content of the abc.rdp file.
    instead of that i am using MIME, following is the snippet i am using.....
    String filepath=path+objId+".rdp";
    FileInputStream fis = new FileInputStream(filepath);
    System.out.println("     filepath               "+filepath);
    byte[] bytes = new byte[fis.available()];
    response.setContentLength(bytes.length);
    fis.read(bytes,0,bytes.length);
    javax.servlet.ServletOutputStream Pout = response.getOutputStream();
    //String string = new String(bytes);
    //Pout.println(string);
    Pout.println(bytes);
    Pout.flush();
    Pout.close();
    fis.close();
    the above code is asking me to save the .rdp file. But i want to run the .rdp file directly without asking me saving option.
    Your Views and Suggestions are valuble to me....
    Thanks
    Chiranjeevi.

    you need to configure the web browser to associate that particular file type with the appropriate action

  • Need to run popup from pl/sql process with a twist

    I am trying to do the following:
    User comes in and selects a date/time for a process to be started at a certain station. User then goes to click create button. Either on the exiting of the date/time picker or the click of the create button, I would like to run a process to determine if there is already something scheduled for that time/station. If there is already something scheduled, I would like to alert them to the fact and confirm if they want to shift the exiting item around and have the just entered item go in it's place..
    Trying to do this in APEX 4.02, Oracle 11g database..
    Thank you,
    Tony Miller
    LuvMuffin Software
    (281) 871-0950

    Luis,
    Thanks for the input.. What I am trying to do is this:
    User comes into page and selects a item to process, then a workstation and a start time & end time for the processing
    After the start and end times are selected I am developing a dynamic action to alert them if a process is already scheduled
    ** NOW ** here is where it gets interesting.. If a item is already scheduled, the want to bump that item from that time & workstation and put the just entered item into the schedule.
    I am looking at a dynamic action, but do NOT yet have the knowledge to do multiple things in it (Only if this is a NEW item):
    I know how to query the table to confirm if there is already and item with the workstation & start-end time period
    Need to see how to generate a popup (confirmation) to confirm they want to bump the existing entry
    I know how to generate the update statement to update the existing item.
    Thank you,
    Tony Miller
    Webster, TX
    If vegetable oil is made of vegetables, what is baby oil made of?

  • Beginner needs help running internet from Airport to Airport.

    My fathers laptop has the internet running through ethernet connection. i want to be able to the internet to run through the airport card to my apple mac upstairs which has airport card too.
    Now ive set up a serve and both computers are reconizing each other, on the internet connect it says computer to computer. When i check the internet status the airport card on my fathers mac gives a green signal but the computer upstairs has a yellow signal. i cant seem to share the internet connection. what am i doing wrong?.

    It sounds like you need to either disable the firewall on your father's Mac or open port 443 on the firewall on the AirPort side. A tool like WaterRoof might make it easier.
    The longer you use this setup the more of these issues you will discover. That is why I recommend that you get an inexpensive wireless router and eliminate all of these issues.

  • (CS3 JS) script runs differently from Scripts Panel vs. ESTK2

    First things first: INDD CS3 / Javascript
    I have a strange thing happening and am wondering if y'all have run into this as well. I have a fairly simple script (primarily just find/change queries). It works like a charm when running it from ESTK2; however, when running it from the scripts panel within INDD, it skips two of the find/change queries inexplicably. 90% of the script works the same, but there are two sections of the script that seem to just not fire.
    And yes, I have made double-sure that I am running the same script and that the one I am running from ESTK2 and from INDD are the exact same, saved versions.
    Is there a fundamental difference between running from the scripts panel and firing from ESTK2? I ran both on the same template, then undid each step-by-step, and it appears that both times the script ran the queries in the same order; however, when it hit a certain spot in the script, one version (the one fired from ESTK2) shows where the text was deleted, and the other looks like it did nothing.
    Is this something that any of you have run across as well? If necessary, I can post the code; however, I figured at this point, I would just ask the general theoretical question of why there might be a difference.
    Thanks!
    Matt Hollowell

    Thanks for the response Kasyan and Peter. I was beginning to feel like that lone person afflicted by some rare scripting illness. I am going to try and solve this later today. I am thinking maybe I need to target INDD with a statement or define an application specific variable or something to ensure that the script "knows" what it is supposed to be doing when run from the scripts panel. I am still confounded why it would run differently, and all I can think is that when it is run from ESTK2, it understands something inherently that needs to be specifically defined when run from the scripts panel.
    The other strange thing is that 90% of the script works as expected; it's just two specific find/change arguments that seem to get skipped.
    If I can figure out what is going on, I will post here, in case someone in the future runs across a similar problem.
    Matt

  • Script runs differently from ESTK and Scripts panel

    Recently I was reported about a problem with one of my scripts, that packages ID documents: a guy wrote me that when he runs it from ESTK, script works fine, but when run from Scripts panel — creates empty folders, does nothing more but generates an error (there's an error handler in the script that logs errors into a text file):
    Error: Invalid value for parameter 'versionComments' of event 'packageForPrint'. Expected String, but received TRUE.
    It's strange, because I don't use this optional parameter in the script.
    BTW, on my computers it works ok, both in ID and ESTK.
    Does anybody encountered this problem? Any ideas on why this happens?
    Kasyan

    He probably has his scriptPreferences version set to 5. To make your script foolproof, you should probably set the scriptPreferences yourself (and restore them when you are don to be nice...)
    BTW, kAppVersion = parseFloat(app.version) is a more readable form for getting the version number...
    Harbs

  • Executing create or replace procedure statement from plsql script

    Hi ,
    I want to execute create or replace procedure from pl/sql block without using execute immediate or dbms_sql, please let me know if feasible.
    Eg:
    declare
    begin
    create or replace procedure .....
    if v_temp = 4 then
    end if;
    end;
    Thanks for help.
    Regards,
    RK

    user588487 wrote:
    Actual requirement is I have .sql file which has Create procedure command in it
    and i have to conditionally execute the above .sql file so going for a pl/sql block.
    Eg:
    begin
    if variable1 <> variable2 then
    @xyz.sql -- contains create or replace procedure statement
    insert into tablexyz.....
    end if;
    end;
    Won't work. The PL/SQL code block (also called an anonymous block) is shipped from the client (e.g. SQL*Plus) to the database server. There it is parsed and executed.
    It cannot execute SQL*Plus code.
    There are 2 basic approaches to address this requirement.
    Method 1. Use PL/SQL and SQL to perform the conditional logic checks that SQL*Plus cannot. Use bind variables to "copy" the results between SQL*Plus and PL/SQL, use substitution variables to execute the conditional branch (as a script) in SQL*Plus.
    Basic example:
    SQL> --// bind variable for passing data to PL/SQL code and
    SQL> --// to receive data from PL/SQL code
    SQL> var status varchar2(100)
    SQL>
    SQL> declare
      2          function ExistsTable( tableName varchar2 ) return boolean is
      3                  i       integer;
      4          begin
      5                  select 1 into i
      6                  from    user_objects
      7                  where   object_type = 'TABLE'
      8                  and     object_name = tableName;
      9                  return( true );
    10          exception when NO_DATA_FOUND then
    11                  return( false );
    12          end;
    13  begin
    14          --// determine if table exists
    15          if not ExistsTable( 'FOOTAB' ) then
    16                  --// table does not exists and SQL*Plus client
    17                  --// needs to run the footab client script
    18                  :status := 'footab.sql';
    19          else
    20                  :status := 'do-nothing.sql';
    21          end if;
    22  end;
    23  /
    PL/SQL procedure successfully completed.
    SQL>
    SQL> --// use a substitution variable to determine what to do
    SQL> set define on
    SQL> col STATUS new_value SCRIPT
    SQL> select :status as STATUS from dual;
    STATUS
    footab.sql
    SQL>
    SQL> --// execute the relevant script (i.e. execute the conditional
    SQL> --// branch of the PL/SQL IF condition
    SQL> @ &SCRIPT
    SQL> --// file: footab.sql
    SQL>
    SQL> create table footab(
      2          id      number primary key,
      3          col1    number,
      4          col2    date
      5  ) organization index
      6  /
    Table created.
    SQL>
    SQL> --//eof
    // running the same steps when the table does exist
    SQL> --// bind variable for passing data to PL/SQL code and
    SQL> --// to receive data from PL/SQL code
    SQL> var status varchar2(100)
    SQL>
    SQL> declare
      2          function ExistsTable( tableName varchar2 ) return boolean is
      3                  i       integer;
      4          begin
      5                  select 1 into i
      6                  from    user_objects
      7                  where   object_type = 'TABLE'
      8                  and     object_name = tableName;
      9                  return( true );
    10          exception when NO_DATA_FOUND then
    11                  return( false );
    12          end;
    13  begin
    14          --// determine if table exists
    15          if not ExistsTable( 'FOOTAB' ) then
    16                  --// table does not exists and SQL*Plus client
    17                  --// needs to run the footab client script
    18                  :status := 'footab.sql';
    19          else
    20                  :status := 'do-nothing.sql';
    21          end if;
    22  end;
    23  /
    PL/SQL procedure successfully completed.
    SQL>
    SQL> --// use a substitution variable to determine what to do
    SQL> set define on
    SQL> col STATUS new_value SCRIPT
    SQL> select :status as STATUS from dual;
    STATUS
    do-nothing.sql
    SQL>
    SQL> --// execute the relevant script (i.e. execute the conditional
    SQL> --// branch of the PL/SQL IF condition
    SQL> @ &SCRIPT
    SQL> prompt Nothing to do...
    Nothing to do...
    SQL> Method 2. Move all "client scripting" to the server. You can still use .sql files. These need to contain valid DDL that can be parsed and executed. On the server, the .sql files are loaded into a table.
    This can be a physical load (e.g. using <i>DBMS_LOB.LoadFromFile()</i>). Or you can keep the .sql files on the server and use BFILE pointers instead to the files.
    You can now use execute immediate to execute the contents of a .sql file as a CLOB that was read from the table containing the .sql scripts.
    To be honest - I have used both methods extensively in the past and no longer bother using either. Table exists when running the table create script? So what. If the table should not exist, use server exceptions in SQL*Plus to cease processing and exit. If it does not matter whether the table exists or not, why be concern with running the script to create the table if the table already exists?

  • Run application from console

    Referring to Steve Muench's example of Using ADF Data Binding from a Simple Console Program here http://radio.weblogs.com/0118231/2005/05/25.html#a558.
    Can anyone tell me how to actually run it? I want to run it outside of Jdeveloper - do I need to run the setvars.bat script? If so what arguments do I need to pass to it?
    - Nathaniel

    Nathaniel,
    stand alone java programs typically are executed by
    java -classname
    or if they are in a package that has a default run target
    java -jar packagename
    Did you look at Steve's example?
    http://otn.oracle.com/products/jdev/tips/muench/consoleadf/ConsoleBatchModeExample.zip
    His sample client should have a main method that makes it runnable.
    Frank

  • Query v$ views from shell script fail

    Hi everybody,
    the query below is runing well with a SQL*PLUS (database is mounted and not open)
    SQL> SELECT member FROM v$logfile;
    MEMBER
    +DATA/testgfi/onlinelog/group_1.298.773871647
    +DATA/testgfi/onlinelog/group_2.294.773871647
    +DATA/testgfi/onlinelog/group_3.295.773871647
    But Giving error if I run it from Shell script ???
    $ sqlplus -s '/ as sysdba' << EOF
    SELECT member FROM v$logfile;
    EOFSELECT member FROM v
    ERROR at line 1:
    ORA-01219: database not open: queries allowed on fixed tables/views only..
    Please help..
    Thanks..
    Aljaro

    Aljaro wrote:
    Hi everybody,
    the query below is runing well with a SQL*PLUS (database is mounted and not open)
    SQL> SELECT member FROM v$logfile;
    MEMBER
    +DATA/testgfi/onlinelog/group_1.298.773871647
    +DATA/testgfi/onlinelog/group_2.294.773871647
    +DATA/testgfi/onlinelog/group_3.295.773871647
    But Giving error if I run it from Shell script ???
    $ sqlplus -s '/ as sysdba' << EOF
    SELECT member FROM v$logfile;
    modify as below
    SELECT member FROM v\$logfile;

  • Displaying an alert (Applescript or otherwise) from shell script?

    I have a point in a shell script where I'd like to put up an alert dialogue on a particular error condition. The script runs in the background and doesn't have a terminal window. I tried writing a little applescript that uses the applescript alert command and call it using osascript from my shell script, but it doesn't work. If I enter "osascript ~/myscript.scpt" in a terminal window, I get the error message "/Users/Ted/myscript.scpt: execution error:No user interaction allowed. (-1713)" (If I run myscript.scpt from the script editor it does what I want it to do.) Any ideas? I suppose I could have my shell script create a file in some folder and have my applescript be triggered as a folder action, but that seems pretty roundabout!

    Thanks -- I apologize for not doing a more thorough search! Yes, that comes very close to addressing my need, but I have run into one difficulty. If I run my shell script from the terminal (pasting it in) everything works fine. If I run it as a packaged app (with Platypus) everything works like it's supposed to, except that the alert applescript (it's just a one line script) briefly flashes the alert dialogue when it's supposed to and then dies, rather than waiting 10 seconds or until I click OK. I'll have to experiment and see if I can tell what's going on.

Maybe you are looking for

  • Mail icon bounces, but never launches. HELP!

    Dear People Who Know Macs Better Than Me, Please help! Yesterday I was trying to back up my Mail (Home/Library/Mail), and when I saw that it was as big as it was, I tried compressing/archiving the Mail folder using the (Create archive of "Mail") when

  • How can I take aout the virus coupondropdown from my mac?

    I need to know how to remove a coupondropdown from my mac? It is in all the blogs that I open

  • PO could not be created

    Hi All, PO could not be created, document contains no items, message id 06,#10, error in external tax system: no mapping could be located for input function. Message id is FS, message #861. Please help. Thanks in Advance.

  • Package com.jniwrapper does not exist

    I am getting the following error package com.jniwrapper does not exist import com.jniwrapper.*;Could anyone please tell me how do I rectify this and go ahead with my code. And if I need to download, please direct me to a site from where I can do so.

  • Unix Command to Shutdown

    What is the most basic way to shutdown via the command line? Thanks. Steve M.