• 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: Moving files from desktop to User folders
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Moving files from desktop to User folders


  • Subject: Re: Moving files from desktop to User folders
  • From: Axel Luttgens <email@hidden>
  • Date: Sun, 05 Jan 2003 20:49:21 +0100

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])?
>
>Regards,
>
>Phil.
>

Aren't you just attempting to set a string constant to some value (a
Finder's file reference, in this case)?
The Finder expects
duplicate <reference> [to <location reference>]
even if it seems to still accept the copy command instead.
You typed:
copy <reference> to <string constant>
so that the Finder passes the command as is to AppleScript, because a
string constant is not a location reference But AppleScript expects:
copy <value> to <variable expression>
and fails.

HTH,
Axel
_______________________________________________
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: 
 >Re: Moving files from desktop to User folders (From: phildobbin <email@hidden>)

  • Prev by Date: Re: Moving files from desktop to User folders
  • Next by Date: Re: osascript problems
  • Previous by thread: Re: Moving files from desktop to User folders
  • Next by thread: Re: Moving files from desktop to User folders
  • Index(es):
    • Date
    • Thread