• 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
Re: Rep: old script fails AND BUG in Smile 3.5.2 (build 609)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Rep: old script fails AND BUG in Smile 3.5.2 (build 609)


  • Subject: Re: Rep: old script fails AND BUG in Smile 3.5.2 (build 609)
  • From: "Stockly, Ed" <email@hidden>
  • Date: Fri, 26 Mar 2010 10:31:34 -0700
  • Thread-topic: Rep: old script fails AND BUG in Smile 3.5.2 (build 609)

Title: Re: Rep: old script fails AND BUG in Smile 3.5.2 (build 609)
For this script the problem may be that “this_item” is a string and needs to be some kind of reference to a finder item.

If that’s the problem, any of these would fix it:

set this_item to "Macintosh HD:Users:RLP:Desktop:work folder:amer.weihnachten1.jpg" as alias

tell application "Finder"
 set this_item to file "Macintosh HD:Users:RLP:Desktop:work folder:amer.weihnachten1.jpg" as alias
set this_item to item  "Macintosh HD:Users:RLP:Desktop:work folder:amer.weihnachten1.jpg" as alias

Or any one of these
set the parent_container_path to (container of item this_item)
set the parent_container_path to (container of file this_item)

set the parent_container_path to (container of (this_item as alias))

HTH,

ES

On 3/26/10 10:10 AM, "Robert Poland"  wrote:

set this_item to "Macintosh HD:Users:RLP:Desktop:work folder:amer.weihnachten1.jpg"
set new_item_name to "amer.weihnachten1.jpg"

tell application "Finder"
set the parent_container_path to (container of this_item)
 _______________________________________________
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

References: 
 >Re: Rep: old script fails AND BUG in Smile 3.5.2 (build 609) (From: Robert Poland <email@hidden>)

  • Prev by Date: Re: Rep: old script fails AND BUG in Smile 3.5.2 (build 609)
  • Next by Date: Re: Back and forth between Posix and HFS paths
  • Previous by thread: Re: Rep: old script fails AND BUG in Smile 3.5.2 (build 609)
  • Next by thread: Re: Rep: old script fails AND BUG in Smile 3.5.2 (build 609)
  • Index(es):
    • Date
    • Thread