Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --this Script setups the given file if is a client App/shortcut
- local tArg = {...}
- settings.load(".settings")
- local FileName = tArg[1]
- local Code = tArg[2]
- local DisplayName = tArg[3]
- local Paster = settings.get("osPaster")
- local Path = fs.combine(settings.get("ClientAppFolder"),FileName)
- shell.run(Paster,"get",Code,Path)
- local AppPaths = settings.get("ClientApps_Paths")
- local AppNames = settings.get("ClientApps_Names")
- AppPaths[#AppPaths + 1] = Path
- AppNames[#AppNames + 1] = DisplayName
- settings.set("ClientApps_Paths",AppPaths)
- settings.set("ClientApps_Names",AppNames)
- settings.save(".settings")
- shell.run("os/System/Scripts/ShortcutWriter",DisplayName,Path,"blank")
Add Comment
Please, Sign In to add comment