• 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
10.6 Problem Passing "Finder" variables to subroutines
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

10.6 Problem Passing "Finder" variables to subroutines


  • Subject: 10.6 Problem Passing "Finder" variables to subroutines
  • From: email@hidden
  • Date: Mon, 07 Sep 2009 23:26:09 -0700

I'm having trouble with 10.6 taking Finder variables being passed to subroutines.

Example:
In 10.4-10.5 I could pass the following into a subroutine:

(folder itemName of activeFolder)

For example: 

global path_to_item

tell application "Finder" to my subroutine(folder itemName of activeFolder)

on subroutine(path_to_item)

-- further Applescript lines of code

end subroutine

The same thing happens with (folder itemName of activeFolder).

I realize there are better ways to script this, but the point is that it was working in 10.4-10.5 and doesn't seem to be working in 10.6. It makes me curious what changed? 

Has anyone else has similar issues with passing Finder-related variables to subroutines?? 

Todd
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Prev by Date: Re: date/Snow Leopard changed
  • Next by Date: Re: strange regexp
  • Previous by thread: Re: strange regexp
  • Next by thread: Re: 10.6 Problem Passing "Finder" variables to subroutines
  • Index(es):
    • Date
    • Thread