• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: url access
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: url access


  • Subject: Re: url access
  • From: Doug McNutt <email@hidden>
  • Date: Sun, 14 Jul 2002 21:26:45 -0600

At 03:09 +0200 7/15/02, Zimba wrote:
>set this_item to "Saves:test.html"
>set fullURL to "ftp://login:password@ftpservername/";
>tell application "URL Access Scripting"
> upload alias this_item to fullURL replacing yes with progress
>without binhexing
>end tell

this_item is a string the way you have defined it.

URL Access says it requires a fileSpec and not an alias or pathname as string.

putting the reserved word "file" in front of a string which is a fully qualified pathname magically converts a string to something that URL Access can understand though I have never been able to find documentation that says so. It is not a standard coercion documented in the Language Guide. The reserved word alias doesn't work that way. Well I guess I don't know that because URL Access will choke on an alias anyway.

upload file this_item to fullURL replacing yes with progress

would make sense. But you do have a disk named Saves don't you? If Saves is a directory your path may not be sufficient.

Uploads usually require a username and password. Old fashioned ftp sites - before security problems - would accept a URL like yours but newer stuff may balk about passwords sent in the clear. There is a with authorization option in URL Access that you may need.

--

Applescript syntax is like English spelling:
Roughly, but not thoroughly, thought through.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >url access (From: Zimba <email@hidden>)

  • Prev by Date: Re: has's list wrappers [Re: Passing *possible* variables to a handler]
  • Next by Date: Re: "choose from list"
  • Previous by thread: url access
  • Next by thread: "choose from list"
  • Index(es):
    • Date
    • Thread