Cocoa : Get Mac Serial Number Using AppleSript

  //Cocoa : Get Mac Serial Number Using AppleSript OR Run A AppleScript in Cocoa

NSDictionary* errorDict;
NSAppleEventDescriptor* returnDescriptor = NULL;

NSAppleScript* scriptObject = [[NSAppleScript alloc] initWithSource:
@”\
set SerialNumber to word -1 of (do shell script \”ioreg -l | grep IOPlatformSerialNumber\”) \n\
–display dialog (SerialNumber) \n\
return SerialNumber”

];
returnDescriptor = [[scriptObject executeAndReturnError: &errorDict]stringValue];

7 Responses to “Cocoa : Get Mac Serial Number Using AppleSript”

  1. BRUCE Says:

    Pillspot.org. Canadian Health&Care.No prescription online pharmacy.Special Internet Prices.PillSpot.org.< b > < a href=”http://pillspot.org/products/vitamins_herbal_supplements/ Herbal-supplements@buy.online” >.< /a >

    Categories: Mental HealthAntidiabetic.Mens Health.Antiviral.Antidepressants.Eye Care.Womens Health.Blood Pressure/Heart.Antibiotics.Pain Relief.Anti-allergic/Asthma.Anxiety/Sleep Aid.Stop SmokingStomach.Weight Loss.Vitamins/Herbal Supplements.Skin…

  2. PDA Says:

    Software http://hfurniturezigl.AUTOPARTSTHAI.INFO/tag/Software Wifi PDA/ : PDA

    PDA

  3. Contents Says:

    Hot http://cwomenzwo.AUTOTECHGUIDE.INFO/tag/Contents+Hot+grill/ : grill

    grill

  4. Conditioner Says:

    Conditioner http://pfire0euyiv.ALLSTOCKSPORT.INFO/tag/Portable+Conditioners+Air+Conditioner/ : Conditioner

    Portable

  5. Night Says:

    Soundtrack http://wfridayngci.05KIAPARTS.US/tag/Soundtrack+lights+Night/ : lights

    Night

  6. stopped Says:

    stopped http://fcaror4.AUTOPARTSVILLE.INFO/tag/Mini+red+stopped/ : stopped

    Mini

  7. frames Says:

    Beds http://fcarvg6.ALLSTOCKSPORT.INFO/tag/metal+bed+frames+Beds+iron/ : frames

    metal

Leave a Reply

You must be logged in to post a comment.