Such as what type of data is to be processed, including realistic examples of input and output.As such the close vote on this one should be too broad as well.
That said it seems like a reasonable question to me as I was once in the dark myself:). Both of them are listed as originals in the duplicate banner here (i.e., this question is duped to both of them). So if answers are to be merged, theyd probably be put there. The bat name is mostly used on Windows but in Linux file name extensions do not really matter. You can use most any editor and you can call it what you wish, Linux does not use extensions such as.sh or.bat or.exe to.doc to identify files, it uses magic. Not the answer youre looking for Browse other questions tagged batch or ask your own question. For a better experience, please enable JavaScript in your browser before proceeding. How To Create This Bat File How To Go AboutIf I was doing this under windows I could simply write a batch file with the commands in but Im unsure of how to go about the same thing on my Mac. The simple command are Mount 2 Network shares Change folders to applicationsMoviejukebox Run Moviejukebox.sh with some switches. I looked at automator but couldnt really get my head round it and Im no developer. Should I add the commands I want in to the.sh file I was thinking maybe applescript is the way to go but have no idea of the commands. Like I said if I was doing this under windows then simple dos commands could be used and I would put these in a batch file. Open Script editor and type something like: do shell script command1 do shell script command2. Then click execute to try it, and if it works as expected, choose Save as Application, and there you go. Ive opened up applescript and can see its a very powerful application and can also see if has lots of Finder script commands so Im sure Ill be able to work our how to mount and unmount my shares but how do I pass a CD command and then a command line in to the terminal window My scripting skills as basic and I have no Mac scripting skills at all. Thanks for the reply but Im not sure I have enough skills to be able to do what I need from he commands you have shown above. You can type it in TextEdit, save it without an extension, and run it (eg by double clicking it in Finder or dragging it from Finder onto your desktop). First you should get the details of your mount working (the directory name etc) by typing it directly into terminal. We also boast an active community focused on purchasing decisions and technical aspects of the iPhone, iPod, iPad, and Mac platforms. Best Samsung Galaxy Note20 Ultra Features That Apple Should Adopt. Whats New in iOS 14 Beta 5: Bigger Apple News Widget, Hidden Photo Album Changes and More. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |