Re: trouble with files and folders in Finder
Re: trouble with files and folders in Finder
- Subject: Re: trouble with files and folders in Finder
- From: Deivy Petrescu via AppleScript-Users <email@hidden>
- Date: Sat, 16 Nov 2019 20:59:49 -0500
> On Nov 16, 2019, at 20:02 , WalterStuartBushell via AppleScript-Users
> <email@hidden> wrote:
>
> I am trying to change some file names however everything I try fails.
> I checked and the folder is there
>
>
> tell application "Finder"
> log (path to music folder) as text
> set UG to "Ug 2:"
> set path2Folder to ((path to music folder)) & UG
> --set W to files of x
> set Y to “After Ewe:Users:walterbushell:Music:UG:” as folder — or as
> alias etcetera
> --set Y to files of folder path2Folder --as alias
> log Y
> end tell
>
>
>
>
> =========================
>
> error “Can’t make \"After Ewe:Users:walterbushell:Music:UG:\" into type
> folder." number -1700 from "After Ewe:Users:walterbushell:Music:UG:" to
> «class cfol»
> ============================================
> tell application "Finder"
> log (path to music folder) as text
> set UG to "Ug 2:"
> set path2Folder to ((path to music folder)) & UG
> --set W to files of x
> set Y to “After Ewe:Users:walterbushell:Music:UG:” as alias — or as
> alias etcetera
> --set Y to files of folder path2Folder --as alias
> log Y
> end tell
> =======================================
> error "File After Ewe:Users:walterbushell:Music:UG: wasn’t found." number -43
> from "After Ewe:Users:walterbushell:Music:UG:"
>
> —
Try
set Y to folder “After Ewe:Users:walterbushell:Music:UG:”
Assuming this is the path to a folder.
Deivy Petrescu
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden