Re: Rep: old script fails AND BUG in Smile 3.5.2 (build 609)
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