Your best friend for file transfer.

variable paths in "put into" command (2 posts)
This is an archived topic. The information in it is likely to be out-of-date and no longer applicable to current versions of Fetch.
- Started 22 years ago by kathrynp
- Latest reply 22 years ago from Jim Matthews
-
kathrynp Member
-
Jim Matthews Administrator
Have you tried "item file file_path" rather than "item alias file_path"? My understanding is that the alias specifier won't work unless the file exists.
Jim Matthews
Fetch Softworks
- Page 1
Topic closed
This topic has been closed.
I'm writing a script to gather information about a computer at start up and then store that information on an ftp server. My script works great when I give the explicit path of the local file.
e.g.
put into transfer window "csn.sfcc.spokane.cc.wa.us" item alias "Macintosh HD:Apple Extras:AppleScript:B18-110068.txt" text format text binary format text
The script already defines the path referenced by alias as a variable file_path, but when I try to put a variable name in the above command, I get the error message:
File file_path wan't found.
{quotes around file_path}
or
Can't make file "B18-110068.txt" of <<class cfol>> "AppleScript" of <<class cfol>> "Apple Extras" of <<class sdsk>> of application "Finder" into the expected type.
{no quotes around file_path}
I need this to run on several machines, so I'd like the script to work with a variable.
Posted 22 years ago #