Questions about app sharing

I would like to limit my xcode app to only run on a few trusted computers. I don’t want people to share this app out. Is there an easy way to do this? I will be distributing this app via email and there is not installer.

xcode 6.2

Not with any great security, other than via Keychain. I’m not sure whether that can be done via ASObjC.

hI petekin74

I no that what I am offering isn’t a sophisticated option, as it could easily be hacked, if you could be bothered that is, it’s more of a low level annoyance that a lot of users don’t no where to go to try to work around it.

Basically I use this in an app that I have built for my work environment, which only lets the app run on Mac’s that have
an allowed serial number in the list, the serial number is the mac’s serial number.

hope this helps.

property YourAppsMAIN : missing value   -- BIND TO YOUR APP'S MAIN WINDOW


          try
			set my_AllowSerial to {"mac serial", "mac serial", "mac serial"}
			set myCompSerial to (do shell script "system_profiler SPHardwareDataType | grep 'Serial Number (system)' | awk '{print $NF}'")
			if my_AllowSerial does not contain myCompSerial then
               YourAppsMAIN's orderOut_(me)
				display dialog "you do not have permission to use this app" buttons "ok" giving up after 3
                current application's NSApp's terminate_(me)
            end if
		end try

OSX 10.10.2