property diskNumber : {}
property listOfDisks : every word of (do shell script "diskutil list | grep EFI | grep -o -e disk[0-9]s[0-9]") as list
on launched theObject
if (number of items of listOfDisks) is greater than 1 then
display dialog "Multiple EFI partitions have been found.
Please choose a partition:" buttons listOfDisks
set the button_pressed to the button returned of the result
set diskNumber to the button_pressed
else
set diskNumber to item 1 of listOfDisks
end if
log diskNumber
end launched
The problem is that when I launch it, it just throws an applescript error: No result was returned from some part of this expression.(-2763)No display dialog ever comes up or anything. Any ideas why this isn't working?



Sign In
Create Account









