Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

URL Access script to a remote volume



Hi scripters

I have been trying out URL Access Scripting to upload file to a remote volume using

set
theURL to "ftp://" & theUserName & ":" & thepassword & "@" & "computerName.local" & "/" & theDirectory
upload this_file to theURL

This works fine for uploading to theUserName's home directory on the remote computer but I cannot figure out how to upload to the Applications folder which is what I would like to do.
i.e. the script will work for theDirectory of "Documents/" which is in the home folder but not for "Applications/" at the root level.
Am I missing something simple or it just not designed to work that way?

I have noticed in the past that there has been criticism of URL Access Scripting and various curl scripts seem to be preferred. Can anyone give me reasons for this?

John
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/email@hidden
Archives: http://lists.apple.com/mailman//archives/applescript-users

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.