Search results

  1. V

    AppleScript: simply "OK" only dialog Howto?

    when using display dialog "Say something." The dialog is an Ok + Cancel type. I'd like an "Ok" (confirmation) only dialog. How does one specify this?
  2. V

    catch AppleScript error

    Yep that's the conclusion I came to also, here's what I ended up with: try do shell script exec on error number errNum set dumb to 1 if (errNum is 5) then (display dialog "Input file does not appear to be of the correct format. I f*ng quit.") else -- If any other...
  3. V

    catch AppleScript error

    My AppleScript is calling a console app with "do shell script." I would like to get the integer return from this console app. According to Apple: Great, how do I catch an AppleScript error? Digging, through docs, haven't found answer yet. Please to help.
  4. V

    Make StdC++ Console App Droppable?

    My problem isn't getting, capturing or redirecting output from the terminal, but that the system somehow gets hung up when using cerr for output from my console app to the terminal window. Actually, it's not a problem, I'll just bypass cerr altogether. So all I need to do is capture the...
  5. V

    Make StdC++ Console App Droppable?

    The terminal process opens a separate "output" window. So, if you were to use this in a standard unix way: $./myapp args instead of displaying stderr output from myapp to the terminal window from which myapp was called, OSX opens another output window, which correctly displays the myapp...
  6. V

    Make StdC++ Console App Droppable?

    Almost got it. Only change to what you had to make it necessarry to run was: set execPath to the main bundle's resource path & "/exsp" set exec to quoted form of execPath & " " & quoted form of POSIX path of names set result to do shell script exec It now calls exsp with the dropped...
  7. V

    Make StdC++ Console App Droppable?

    Ok, Ctl+Right Click didn't do it so I figured display package contents was the correct choice and it seems to be: So my executable is in Contents/Resources/English.lproj I didn't put it there myself, so it must have been placed there during the Build process. Everything basically...
  8. V

    Make StdC++ Console App Droppable?

    I don't have this dir. I do have an English.lproj folder at the root of the project folder. This seems to be the location of the files corresponding to "Resources." I copied the compiled executable to this dir and added it to the project. It does show up under Targets/My First Droplet/Bundle...
  9. V

    Make StdC++ Console App Droppable?

    Okay, making some good progress here. I was able to download your code, create a new Applescript Droplet in xcode (first time with XCode), move your code into new project and modify "Application.applescript" to call "myapp" intead of "cat". This works: Now, if I embed the source of myapp...
  10. V

    Make StdC++ Console App Droppable?

    Gosh darn it. I'm registered and logged in, but seem to be prevented from downloading this file. When I click on it, it asks me to log in (though I am logged in) and informs I may not have access privelages. What gives?
  11. V

    Make StdC++ Console App Droppable?

    You are correct kainjow. Thank you for your time and help. I'll check out the script this afternoon. Something like this is what expected to have to do. Hopefully I'll be able to "package" the end result in such a way that it appears to be a single file to the end user, but one step at a...
  12. V

    Make StdC++ Console App Droppable?

    Certainly it does not, that's not what I meant. Same for Windows and Unix. This does work fine. However, in Windows, you can drop anyfile onto a CONSOLE APP and it will call that appp and pass the path to the file that was dropped on it as argv[1]. I would like to do this in OSX.
  13. V

    Make StdC++ Console App Droppable?

    New to Mac/OSX programming. In Windows when dropping a file (of which there are no restrictions) on a conole app, it is the equivalent of calling the application's main function with argv[1] as the full path to the file that was dropped on the app. This is pretty convenient. I've managed...
  14. V

    Call Console App from Applescript

    I think I found the problem: I had "Application Package" selected as the Project Type in CW under Target Settings. Thus it was a folder (?), not an application, hence the permission denied when trying: ./myapp.app It seems you have to use open ./myapp.app. However, using this with...
  15. V

    Call Console App from Applescript

    This is actually a two part question: Part 1: I've written a C++ "SIOUX Console App." It runs fine from within CodeWarrior, and on other systems, but when I call it from the console (bash or c-shell) the system says "permission denied." I opened permissions to 777, so it's not a permission...
Back
Top