Changeset 355 for trunk/Cocoa/Pester/Source/PSScriptAlert.m
- Timestamp:
- 11/23/07 04:58:05 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cocoa/Pester/Source/PSScriptAlert.m
r103 r355 50 50 if (errorMessage == nil) errorMessage = [errorInfo objectForKey: NSAppleScriptErrorBriefMessage]; 51 51 NSRunAlertPanel(@"Script loading error", 52 @"Pester encountered an error while attempting to load Ò%@Ó%@ %@",52 @"Pester encountered an error while attempting to load “%@”%@ %@", 53 53 nil, nil, nil, 54 54 [[NSFileManager defaultManager] displayNameAtPath: scriptPath], 55 errorMessage == nil ? @"" : [NSString stringWithFormat: @":\n\n%@%@", appName == nil ? @"" : @" Ò%@Óreported an error: ", errorMessage],55 errorMessage == nil ? @"" : [NSString stringWithFormat: @":\n\n%@%@", appName == nil ? @"" : @"“%@” reported an error: ", errorMessage], 56 56 errorNumber == nil ? @"" : [NSString stringWithFormat: @"(%@)", errorNumber]); 57 57 } else { … … 63 63 if (errorMessage == nil) errorMessage = [errorInfo objectForKey: NSAppleScriptErrorBriefMessage]; 64 64 NSRunAlertPanel(@"Script execution error", 65 @"Pester encountered an error while attempting to execute the script Ò%@Ó%@ %@",65 @"Pester encountered an error while attempting to execute the script “%@”%@ %@", 66 66 nil, nil, nil, 67 67 [[NSFileManager defaultManager] displayNameAtPath: scriptPath], 68 errorMessage == nil ? @"" : [NSString stringWithFormat: @":\n\n%@%@", appName == nil ? @"" : @" Ò%@Óreported an error: ", errorMessage],68 errorMessage == nil ? @"" : [NSString stringWithFormat: @":\n\n%@%@", appName == nil ? @"" : @"“%@” reported an error: ", errorMessage], 69 69 errorNumber == nil ? @"" : [NSString stringWithFormat: @"(%@)", errorNumber]); 70 70 }
Note:
See TracChangeset
for help on using the changeset viewer.