Re: Making Folders
Re: Making Folders
- Subject: Re: Making Folders
- From: Yvan KOENIG <email@hidden>
- Date: Fri, 6 Jan 2006 17:59:41 +0100
Le 6 janv. 2006, à 16:55, Steve Suranie a écrit :
I did a work around:
on folderMaker(topLevelPath, i)
set topLevelPath to topLevelPath as string
display dialog "Item" & i & ": Enter the name of the folder you are
creating. Please use the format SKU_DESCRIPTION_MODALITY" default
answer
"EXAMPLE: 00001_RedShirt_HI"
set thisFolderName to text returned of result as string
set folderList to list folder (topLevelPath as alias) without
invisibles
if folderList contains thisFolderName then
display dialog "This folder already exists, would you like to
select
another name?" buttons {"Yes", "No"} default button "No"
else
set folderPath to topLevelPath & thisFolderName
display dialog "Make folder"
end if
end folderMaker
Hello
I think of two explanations.
- 1 - folderList items are "Unicode text" items while thisFolderName
is a string.
set thisFolderName to (text returned of result) as Unicode Text
may be a workaround.
- 2 - if you accept the default answer the Finder should be unable to
find a file whose path is:
topLevelPath & "EXAMPLE: 00001_RedShirt_HI"
which means that it tis trying to find the file "00001_RedShirt_HI"
in the folder topLevelPath & "EXAMPLE:"
Yvan KOENIG
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden