[futurebasic] Re: [FB] CFArrayOfCFDicts question

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : October 2010 : Group Archive : Group : All Groups

From: Robert Purves <listrp@...>
Date: Fri, 29 Oct 2010 17:39:46 +1300
Consider the merits of short code.

/*
returns 0 on success, otherwise a non-zero value
*/
local fn SystemCommand( cmd as Str255 )
'~'1
fn FBPStr2CStr( @cmd )
end fn = fn system( @cmd )


dim as long  result
result = fn SystemCommand( "plutil /escaped/path/to/file" )
long if ( result )
// either file does not exist or it is not a valid property list
end if


Robert P.