Re: Moving files from desktop to User folders
Re: Moving files from desktop to User folders
- Subject: Re: Moving files from desktop to User folders
- From: phildobbin <email@hidden>
- Date: Sun, 05 Jan 2003 16:35:26 +0000
On 5/1/03 16:01, "cassj" <email@hidden> wrote:
>
Here is a generic script for copying any chosen file into a target
>
folder:
>
>
tell application "Finder"
>
activate
>
set filetocopy to choose file
>
set targetfolder to choose folder
>
duplicate filetocopy to targetfolder with replacing
>
end tell
>
>
Hope this helps you out a little.
More than that: it's perfect :-)
Many thanks,
Regards,
Phil.
>
On Sunday, January 5, 2003, at 10:04 AM, phildobbin wrote:
>
>
> On 3/1/03 23:21, "Gnarlodious" <email@hidden> wrote:
>
>
>
>> Entity phildobbin spoke thus:
>
>>
>
>>> Could somebody show me some basic syntax to move a file from the
>
>>> /User
>
>>> desktop to a designated folder nested in the /User/Documents folder?
>
>>
>
>> tell application "Finder" to copy file "Hotlist.html" of desktop to
>
>> folder
>
>> "Documents" of home
>
>
>
> From a modified:
>
>
>
> tell application
>
> "Finder.app"
>
> copy file "CGI script" of desktop to "Documents"
>
> end tell
>
>
>
> ScriptDebugger gives me a:
>
>
>
> `Can't set "Documents" to file "CGI script" of desktop. Access not
>
> allowed.'
>
>
>
> And an Applescript error -10003 when trying to compile.
>
>
>
> Any ideas (I'm logged in as an administrator and have permissions set
>
> correctly [0700])?
_______________________________________________
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.