If you're asking if it's possible to programmatically update 100 JavaScript files, yes, it's possible. Since JavaScript (.js) files are plain text files, you could do this with a programming or scripting language. It would involve developing some code that would search through your published file sets, locate the .js file you want to edit, open that file, locate the position in the text to edit, implement the edit, and then save the file. This would be done in a recursive loop until no more of the targeted .js files can be found.
We used to do this type of thing all the time using Authorware. If you don't have programming or scripting language experience, you'll need to get some assistance. However, just using Windows Notepad and copy/paste functions, you could probably update the 100 files nearly as quickly as it would take to write the code, test it, and debug it.
Thanks Steve. It is literally only one trigger that needs to be added but would prefer to update the source Storyline as we will probably need to republish the files more than once. Sounds like just another annoying manual update across all courses.... Sigh!!!
3 Replies
Kuva,
If you're asking if it's possible to programmatically update 100 JavaScript files, yes, it's possible. Since JavaScript (.js) files are plain text files, you could do this with a programming or scripting language. It would involve developing some code that would search through your published file sets, locate the .js file you want to edit, open that file, locate the position in the text to edit, implement the edit, and then save the file. This would be done in a recursive loop until no more of the targeted .js files can be found.
We used to do this type of thing all the time using Authorware. If you don't have programming or scripting language experience, you'll need to get some assistance. However, just using Windows Notepad and copy/paste functions, you could probably update the 100 files nearly as quickly as it would take to write the code, test it, and debug it.
Hi Kuva!
Looks like Steve has popped in to assist you here :)
Thanks Steve. It is literally only one trigger that needs to be added but would prefer to update the source Storyline as we will probably need to republish the files more than once. Sounds like just another annoying manual update across all courses.... Sigh!!!
This discussion is closed. You can start a new discussion or contact Articulate Support.