Changeset 4725


Ignore:
Timestamp:
Jan 6, 2021 3:34:14 PM (9 months ago)
Author:
toby
Message:

add ScriptEditor? save to makeMacApp

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/makeMacApp.py

    r4687 r4725  
    224224        plistlib.writePlist(d,os.path.join(appPath,"Contents",'Info.plist'))
    225225
     226    # open & save the file in the editor to help set authorization levels
     227    osascript = '''
     228    tell application "Script Editor"
     229       activate
     230       set MyName to open "{}"
     231       save MyName
     232       close MyName
     233       quit
     234    end tell   
     235'''.format(appPath)
     236    print(script)
     237    subprocess.Popen(["osascript","-e",osascript])
     238       
    226239    print("\nCreated "+project+" app ("+str(appPath)+
    227240          ").\nViewing app in Finder so you can drag it to the dock if, you wish.")
Note: See TracChangeset for help on using the changeset viewer.