573c573 < import aepack --- > import Carbon.AppleEvents 585,586c585,587 < if isinstance(defaultLocation, (Carbon.File.FSSpec, Carbon.File.FSRef)): < args['defaultLocation'] = aepack.pack(defaultLocation) --- > if isinstance(defaultLocation, Carbon.File.FSSpec): > args['defaultLocation'] = Carbon.AE.AECreateDesc( > Carbon.AppleEvents.typeFSS, defaultLocation.data) 588,589c589,592 < defaultLocation = Carbon.File.FSRef(defaultLocation) < args['defaultLocation'] = aepack.pack(defaultLocation) --- > if not isinstance(defaultLocation, Carbon.File.FSRef): > defaultLocation = Carbon.File.FSRef(defaultLocation) > args['defaultLocation'] = Carbon.AE.AECreateDesc( > Carbon.AppleEvents.typeFSRef, defaultLocation.data)