Saturday, July 4, 2020

#1 2002-04-03 09:48:25 am

Trash Man
Sanitation Department
Registered: 2005-10-20
Posts: 5336

URL Access Scripting Dies

I've heard people mention that URL Access Scripting for OS X is flawed, but until recently it's worked fine for me. Except all of the sudden this week it stopped working. Rebooting didn't help. Upgrading from 10.1.2 to 10.1.3 didn't help. I don't have the developer tools installed on that machine, maybe that would help. Has anyone else experienced this problem?


One mans trash is another mans treasure

Offline

 

#2 2002-04-03 01:30:58 am

Krioni
Member
From:: New York, NY
Registered: 2002-11-20
Posts: 245
Website

Re: URL Access Scripting Dies

: I've heard people mention that URL Access Scripting for OS X is flawed, but
: until recently it's worked fine for me. Except all of the sudden this week
: it stopped working. Rebooting didn't help. Upgrading from 10.1.2 to 10.1.3
When you try to do what? Anything? If you try to submit a form using form data, UAS is totally broken right now, since 10.1, at least.
Can you write the command you used here?

Offline

 

#3 2002-04-04 10:09:42 am

Trash Man
Sanitation Department
Registered: 2005-10-20
Posts: 5336

Re: URL Access Scripting Dies

: When you try to do what? Anything? If you try to submit a form using form
: data, UAS is totally broken right now, since 10.1, at least.
: Can you write the command you used here? tell application "Finder"
activate
set this_item to choose file end tell set myURL to "ftp://username:pass@server/path/"
try
tell application "URL Access Scripting" to upload this_item to myURL replacing yes with progress without binhexing
on error errMsg number errorNum
display dialog errMsg & " " & errorNum end try


One mans trash is another mans treasure


Filed under: url, Finder

Offline

 

#4 2002-04-04 10:11:31 am

Trash Man
Sanitation Department
Registered: 2005-10-20
Posts: 5336

Re: URL Access Scripting Dies

: activate
: set this_item to choose file end tell set myURL to
: "ftp://username:pass@server/path/"
: try
: tell application "URL Access Scripting" to upload this_item to
: myURL replacing yes with progress without binhexing
: on error errMsg number errorNum
: display dialog errMsg & " " & errorNum end try
I should also mention that this script works fine on one machine, and doesn't work at all on another machine (though it worked last week)


One mans trash is another mans treasure


Filed under: url

Offline

 

#5 2002-04-04 02:38:09 am

Krioni
Member
From:: New York, NY
Registered: 2002-11-20
Posts: 245
Website

Re: URL Access Scripting Dies

: I should also mention that this script works fine on one machine, and doesn't
: work at all on another machine (though it worked last week)
I think I see the problem. You need to give UAS a file, not an alias, which is what choose file gives you. You'll need to convert it first. Another possibility is to do:
set this_item to choose file as string
-- then, upload putting file in front of this_item in the upload command

Offline

 

#6 2002-04-04 07:07:48 am

Trash Man
Sanitation Department
Registered: 2005-10-20
Posts: 5336

Re: URL Access Scripting Dies

: I think I see the problem. You need to give UAS a file, not an alias, which
: is what choose file gives you. You'll need to convert it first. Another
: possibility is to do: set this_item to choose file as string
: -- then, upload putting file in front of this_item in the upload command
tell application "Finder"
activate
set this_item to (choose file) as string end tell set myURL to "ftp://user:pass@server/path/"
try
tell application "URL Access Scripting" to upload file this_item to myURL replacing yes with progress without binhexing
on error errMsg number errorNum
display dialog errMsg & " " & errorNum end try
Ok, I tried modifying the script like you described, and it still times out on one machine but works fine on another. It's as if there's something messed up about that machine.


One mans trash is another mans treasure


Filed under: url, Finder

Offline

 

#7 2002-04-05 07:33:25 am

Krioni
Member
From:: New York, NY
Registered: 2002-11-20
Posts: 245
Website

Re: URL Access Scripting Dies

: tell application "Finder"
: activate
: set this_item to (choose file) as string end tell set myURL to
: "ftp://user:pass@server/path/"
: try
: tell application "URL Access Scripting" to upload file this_item to
: myURL replacing yes with progress without binhexing
: on error errMsg number errorNum
: display dialog errMsg & " " & errorNum end try
: Ok, I tried modifying the script like you described, and it still times out
: on one machine but works fine on another. It's as if there's something
: messed up about that machine.
Hmm, this may help:

Applescript:

tell application "URL Access Scripting" activate upload file this_item to myURL replacing yes with progress without binhexing end tell

Separate out the command into a distinct TELL block. I've seen this make a difference before, strangely enough.


Filed under: url, Finder

Offline

 

#8 2002-04-05 01:48:29 am

Trash Man
Sanitation Department
Registered: 2005-10-20
Posts: 5336

Re: URL Access Scripting Dies

: Hmm, this may help: tell application "URL Access Scripting"
: activate upload file this_item to myURL replacing yes with progress
: without binhexing end tell
: Separate out the command into a distinct TELL block. I've seen this make a
: difference before, strangely enough.
I just tried it, no luck. I wonder if URL Access Scripting has a prefs file that could be corrupted?


One mans trash is another mans treasure


Filed under: url

Offline

 

#9 2002-04-07 10:07:30 am

Trash Man
Sanitation Department
Registered: 2005-10-20
Posts: 5336

Re: URL Access Scripting Dies

: I just tried it, no luck. I wonder if URL Access Scripting has a prefs file
: that could be corrupted?
In OS 9, there is a URL Access Log Folder with a URL Access Download Log file in the System:Application Support: folder. Maybe something similar on OS X?


One mans trash is another mans treasure

Offline

 

#10 2002-04-10 08:13:23 am

Trash Man
Sanitation Department
Registered: 2005-10-20
Posts: 5336

Re: URL Access Scripting Dies

I, too, am having a problem with similar code.
When I have the event log open, my upload command returns a value of "false" and gives the error "URL Access Scripting got an error: Extension failure"


One mans trash is another mans treasure

Offline

 

#11 2002-04-18 07:56:15 am

Trash Man
Sanitation Department
Registered: 2005-10-20
Posts: 5336

Re: URL Access Scripting Dies

I FINALLY figured it out. I changed my proxy settings, and didn't have any DNS server entries on that computer. I fixed those items, and the script works like a charm! Thanks for your help!


One mans trash is another mans treasure

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)