Applescript error with URL Access scripting

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Applescript error with URL Access scripting Sat Jan 08, 2011 7:31 am • by nickwild
HI,

I have a script that runs OK when run independently, but when run either as an external script triggered from Hazel or within error produces an error.

The portion of code that is erroring is:
tell application "URL Access Scripting"
set DL_Location to "DATA:NASMovies:" & current_name & ":"
set DL_file to current_name & ".xml"
set DL_string to DL_Location & DL_file
download tmdbURL to file DL_string
end tell

which produces the following error;

AppleScript error: {
NSLocalizedDescription = "URL Access Scripting got an error: Folder some object wasn\U2019t found.";
NSLocalizedFailureReason = "Folder some object wasn\U2019t found.";
OSAScriptErrorAppAddressKey = <NSAppleEventDescriptor: 'psn '("URL Access Scripting")>;
OSAScriptErrorAppNameKey = "URL Access Scripting";
OSAScriptErrorBriefMessageKey = "Folder some object wasn\U2019t found.";
OSAScriptErrorMessageKey = "URL Access Scripting got an error: Folder some object wasn\U2019t found.";
OSAScriptErrorNumberKey = -120;
OSAScriptErrorRangeKey = NSRange: {0, 0};
}


Any ideas how I can resolve this?

TIA


Nick
nickwild
 
Posts: 1
Joined: Sat Jan 08, 2011 7:26 am

I can't tell from that snippet. It's complaining about a folder called "some object" not existing. Does your script ever refer to a folder with that name?
Mr_Noodle
Site Admin
 
Posts: 11255
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support