Important notice:
Terminal window must be launched manually in advance.
Otherwise command after compilation will fail.

==================================
==================================


osascript -e 'tell app "Terminal" to activate' -e 'tell app "Terminal" to do script "cd /Users/mantas/Desktop/mantas/LithuanianCharSetConverter_Lazarus/ && strip ./LithuanianCharSetConverter && mv -f ./LithuanianCharSetConverter \"./Lithuanian CharSet Converter.app/Contents/MacOS/\""'

==================================
==================================

osascript -e 'tell app "Terminal" to activate' -e 'tell app "Terminal" to do script "cd /Users/mantas/Desktop/mantas/LithuanianCharSetConverter_Lazarus/ && strip ./LithuanianCharSetConverter && mv -f ./LithuanianCharSetConverter \"./Lithuanian CharSet Converter.app/Contents/MacOS/\" && exit"'


==================================
==================================

Project Options:

https://wiki.freepascal.org/IDE_Window:_Compiler_Options#Execute_after
Compiler Commands
<...>
Execute after
Provide an (optional) command to execute after running the compiler. See above 'Execute before' for details.

==================================
==================================

https://wiki.lazarus.freepascal.org/macOS_Programming_Tips
Script Editor / osascript

Use the Script Editor application to edit, compile and run AppleScript files. It’s located in /Applications/Utilities/.

Use the command line utility osascript from /usr/bin/ to execute an AppleScript command or file from the command line or from a script file. For more information, enter man osascript in a Terminal to view its manual page.


==================================
==================================


http://kb.mit.edu/confluence/pages/viewpage.action?pageId=152578725
How do I determine the serial number of a computer?

-------------------------
Windows
Open a command prompt (by choosing the Command Prompt item from the Start menu, or typing cmd in the Start menu's "Run" box), and type the following:

wmic bios get serialnumber

Note: Windows 10 users may navigate to the Command Prompt by right clicking on Start button, or by typing "cmd" on Start screen to search it.
-------------------------

Mac OS X
Go to Utilities. Open the Terminal application and type:

ioreg -l | grep IOPlatformSerialNumber

With the release of macOS Ventura (Version 13), to find this information outside of the above, there are now two separate ways to find your serial number:
If you are running a version of macOS before Ventura - instructions can be found in Apple Support Article How To Find Apple Serial Number
If you are using a machine running macOS Ventura (Version 13) - instructions can also be found in MIT Knowledge Base article How to Find Serial number on An Apple Computer running macOS Ventura or Higher
-------------------------

Linux
Open a shell and type:

sudo dmidecode -t system | grep Serial

Note: The user will need to have root access to the system.
-------------------------
==================================
==================================

https://www.reddit.com/r/jamf/comments/15z5f7m/serial_number_from_recovery_in_ventura_all_the/
Serial number from Recovery in Ventura - all the usual commands don't work

Thank you! I was able to get the info with this command and left off the end of it because I was manually typing it in. So:

ioreg -rd1 -c IOPlatformExpertDevice

worked well.
==================================
==================================


