Difficulty with Akua Sweets
Difficulty with Akua Sweets
- Subject: Difficulty with Akua Sweets
- From: "John McElwain" <email@hidden>
- Date: Mon, 26 Mar 2001 16:58:17 -0700
Two problems...
First, I have been having problems getting AS 1.5.5 OS 9.1 to recognize Auka
Sweet 1.4.1. I placed the scripting addition into the scripting additions
folder and restarted, but after that the Auka Sweets commands do not
compile.
Second, I would like to use the collate command to delete an alias to a
folder and then replace that alias with a folder with the same name and then
populate the folder with aliases of the items from the original. Something
like this..
tell application "Finder" to set theOriginal to ,
(original item of aliasToSomeFolderwithTheSameNameAsThatFolder) as alias
set theOriginalInfo to info for theOriginal
if folder of theOriginalInfo then
collate aliasToSomeFolderwithTheSameNameAsThatFolder with the deleter
set FolderName to name of theOriginalInfo
tell application "Finder" to make new folder at folder ParentFolder with
properties {name:FolderName}
set CopyFolder to (ParentFolder & FolderName & ":") as string
set fileAliases to list folder theOriginal without invisibles
repeat with eachFile in fileAliases
set thePath to (theOriginal as string) & eachFile as string
set theAlias to alias thePath
tell application "Finder" to make new alias at folder CopyFolder to
theAlias
end repeat
This does not work if the alias and the folder have the same name -- unless
I put a delay (1 sec) after the collate command.
Are there any other solutions? Thanks for your help.
John