Skip to content
This repository has been archived by the owner on Nov 10, 2019. It is now read-only.

Commit

Permalink
1.4.0b27
Browse files Browse the repository at this point in the history
  • Loading branch information
macmule committed Sep 15, 2017
1 parent e1bb4c5 commit 9d67ad1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
Binary file not shown.
16 changes: 14 additions & 2 deletions AutoImagrNBI/AutoImagrNBIAppDelegate.applescript
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,18 @@ script AutoImagrNBIAppDelegate
logToFile_(me)
-- Get OS of host mac to verify that we can create an .nbi from supplied OS.dmg
set my hostMacOSVersion to (do shell script "/usr/bin/sw_vers -productVersion")
-- Variables to mess with, keeping the orignal with their decimals
set my hostMacOSVersionToDelim to hostMacOSVersion
-- Store delimiters for resetting later
set applescriptsDelims to AppleScript's text item delimiters
-- Set delimiters to decimal
set AppleScript's text item delimiters to "."
-- Set variables to the split versions
set hostMacOSVersionToDelim to hostMacOSVersionToDelim's text items
-- Set to major version of OS
set hostMacOSVersionMajor to text item 2 of hostMacOSVersionToDelim as integer
-- Reset delimiters
set AppleScript's text item delimiters to applescriptsDelims
-- Get host macs Build version for logging/debugging
set my hostMacOSBuildVersion to (do shell script "/usr/bin/sw_vers -buildVersion")
-- Log OS version & build of host mac
Expand Down Expand Up @@ -514,8 +526,8 @@ script AutoImagrNBIAppDelegate
end repeat
-- Set to text of variable
set selectedOSdmgMountPath to selectedOSdmgMountPath as text
-- If APFS source byt not 10.13
if ((NSString's stringWithString:selectedOSdmgKind) as string) is equal to "apfs" then
-- If APFS source but not 10.13
if (hostMacOSVersionMajor is less than 13) and ((NSString's stringWithString:selectedOSdmgKind) as string) is equal to "apfs" then
--Log Action
set logMe to "APFS source, not a 10.13 host"
logToFile_(me)
Expand Down

0 comments on commit 9d67ad1

Please sign in to comment.