Re: Simple AS question (BBEdit)
Re: Simple AS question (BBEdit)
- Subject: Re: Simple AS question (BBEdit)
- From: Chris Goedde <email@hidden>
- Date: Thu, 5 Feb 2009 13:48:12 -0600
On Thu, Feb 5, 2009 at 1:35 PM, Michelle Steiner <email@hidden> wrote:
> On Feb 5, 2009, at 12:20 PM, Chris Goedde wrote:
>
>> set thePath to (path to desktop as string)
>> set theOffset to offset of "Desktop" in thePath
>> set thePath to (text 1 through (theOffset - 1) of thePath)
>> set thePath to thePath & "Documents:Work:Professional:STEP:Web
>> Site:Development:"
>
> Why go through that rigamarole?
>
> set thePath to path to home folder as text &
> "Documents:Work:Professional:STEP:Web Site:Development:"
Because it gives the error:
Can't make {text, "Documents:Work:Professional:STEP:Web
Site:Development:"} into type type class.
!?!?! You did that on purpose, right? Or, should it work?
This works:
set thePath to (path to home folder as text) &
"Documents:Work:Professional:STEP:Web Site:Development:"
Thanks for the pointer!
Chris
_______________________________________________
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