• 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: Simple AS question (BBEdit)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Simple AS question (BBEdit)
      • From: Michelle Steiner <email@hidden>
    • Re: Simple AS question (BBEdit)
      • From: Philip Aker <email@hidden>
References: 
 >Simple AS question (BBEdit) (From: Chris Goedde <email@hidden>)
 >Re: Simple AS question (BBEdit) (From: "Mark J. Reed" <email@hidden>)
 >Re: Simple AS question (BBEdit) (From: Eric Taylor <email@hidden>)
 >Re: Simple AS question (BBEdit) (From: Chris Goedde <email@hidden>)
 >Re: Simple AS question (BBEdit) (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: Simple AS question (BBEdit)
  • Next by Date: Re: Simple AS question (BBEdit)
  • Previous by thread: Re: Simple AS question (BBEdit)
  • Next by thread: Re: Simple AS question (BBEdit)
  • Index(es):
    • Date
    • Thread