• 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
Cumulus Client: Getting Subcategories
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Cumulus Client: Getting Subcategories


  • Subject: Cumulus Client: Getting Subcategories
  • From: "Steve Suranie" <email@hidden>
  • Date: Tue, 5 Nov 2002 14:36:25 -0500
  • Thread-topic: applescript-users digest, Vol 3 #1036 - 17 msgs

Can anyone help me out with this script? The problem is the second repeat. Cumulus keeps returning an error telling me it can't make some data into the expected type. Now if I substitute this line:

set SPCatName to name of category thisSubCat

with

set SPCatName to name of category 17 --in this case the first subcategory of category "SP" is category ID # 17 it works fine.

I started off liking Cumulus but I am getting real frustrated with it real fast. Any help would be appreciated.

Oh yeah, and don't forget to vote for those of you in the US. : )


set SPCatList to {}
set SPCatNameList to {}
set catList to {}

tell application "Cumulus Client"
tell front collection

copy name of every category to catList
repeat with thisCat in catList
set thisCat to thisCat as string
if thisCat = "SP" then
set SPCatList to subcategories of category thisCat
end if
end repeat

repeat with thisSubCat in SPCatList
set SPCatName to name of category thisSubCat
copy SPCatName to end of SPCatNameList
end repeat

return SPCatNameList

end tell
end tell
_______________________________________________
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.

  • Prev by Date: Re: Removing characters from a string
  • Next by Date: Re: URL Access: Limit on URL Length?
  • Previous by thread: Re: Download Folder
  • Next by thread: Re: Cumulus Client: Getting Subcategories
  • Index(es):
    • Date
    • Thread