Creating an Applescript from another

Discussion in 'Mac Programming' started by DoubleJGames, Feb 26, 2014.

  1. DoubleJGames macrumors newbie

    Joined:
    Sep 30, 2013
    #1
    Hi,

    I am wondering if there is a way to have an applescript that when run will create another applescript and save it to a designated folder. Putting it into perspective, I want to be able to run a setup script type of thing that will create a script and save it in the speakable items folder.

    Thanks

    DoubleJGames
     
  2. superscape macrumors 6502a

    superscape

    Joined:
    Feb 12, 2008
    Location:
    East Riding of Yorkshire, UK
    #2
    Not that I'm aware of, although maybe someone else will know a way. Could you not copy the script from another location e.g. an FTP site?

    Or maybe you could save the Applescript as an application and store the second AppleScript into it's Resources folder, copying it from there as required.
     
  3. Red Menace macrumors 6502

    Joined:
    May 29, 2011
    Location:
    Littleton, Colorado, USA
    #3
    You can use osacompile to compile and save scripts, and the AppleScript Editor is also scriptable.
     
  4. superscape macrumors 6502a

    superscape

    Joined:
    Feb 12, 2008
    Location:
    East Riding of Yorkshire, UK

Share This Page