• 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
OS X vs. classic AS compatibility
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

OS X vs. classic AS compatibility


  • Subject: OS X vs. classic AS compatibility
  • From: Christopher Coulon <email@hidden>
  • Date: Mon, 04 Mar 2002 16:19:08 -0800

Greetings,

I am fairly new to AppeScript and brand new to this group, so please forgive
what may be a simple question, but I have been using AppleScript to do batch
processing of images for image analysis in Object-Image, which is barely
scriptable. The application permits embedded scripts using BeginScript()
and EndScript to enter and leave AS. The following script works fine in OS
9.2 (other than taking forever to get started) but fails in Classic mode in
the two places:

1. it makes the folder in the proper place (myPath is a string of a pathway
defined earlier in the macro) but does not name it 3output2 in Classic mode.
2. it doesn9t return any result in the 3get mytext2 statement in classic,
whereas in OS 9 it returns results that can be put into a text window as a
list of images.

BeginScript(myPath);
tell application "Finder"
make new folder at folder myPath
select folder "untitled folder" of folder myPath
set name of selection to "output"
set myList to every file in folder myPath whose ,
(file type is "TIFF") and (kind is not "alias")
end tell
set mytext to ""
repeat with i from 1 to count (myList)
set mytext to mytext & name of item i of myList & "\r"
end repeat
get mytext
EndScript;

Can anyone help me with why this does not work in Classic mode?

Thanks in advance,

Chris

***************************************
The GAIA Group
Global Automated Image Analysis

We welcome image analysis problems in all fields.
www.theGAIAgroup.org
Christopher Coulon, Ph.D., Founder
email@hidden
***************************************
_______________________________________________
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: script object properties: seeking confirmation
  • Next by Date: Re: Creating a double-clickable Terminal script
  • Previous by thread: Re: script object properties: seeking confirmation
  • Next by thread: standards for applescript
  • Index(es):
    • Date
    • Thread