• 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
Difficulty with Akua Sweets
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Writing a script to save a Quark document as an EPS ?
  • Next by Date: Cumulus find record question
  • Previous by thread: Re: Writing a script to save a Quark document as an EPS ?
  • Next by thread: Cumulus find record question
  • Index(es):
    • Date
    • Thread