• 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: Trying to script the creation of a script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trying to script the creation of a script


  • Subject: Re: Trying to script the creation of a script
  • From: Christian Boyce <email@hidden>
  • Date: Sun, 22 Feb 2004 20:34:36 -0800

Paul and Andrew set me straight (quoting Paul here):

You never took 'thename' out of your literal string. This section:

--
tell application \"Finder\" of machine \"eppc://192.168.1.100\"
open file\" & thename & \"of folder \"TitleTrack Jukebox v2.0\" of
startup disk
end tell
--

should be:

--
tell application \"Finder\" of machine \"eppc://192.168.1.100\"
open file\"" & thename & "\"of folder \"TitleTrack Jukebox v2.0\" of
startup disk
end tell
--


with quotes around " & thename & " to remove it from your large literal
quote.


Aha. Right. This explains why the variable "thename" is not turning green when I compile. I got lost in the quotes and escaping of quotes.

The untested solution by Andrew isn't working yet-- I get "error -4960"-- but I'll keep at it. I'm on my way now.

Thanks, both of you.

cb


--
Christian Boyce
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Date Modified
  • Next by Date: Re: Efficiently using whose on Address Book users
  • Previous by thread: Re: Trying to script the creation of a script
  • Next by thread: constructing file name
  • Index(es):
    • Date
    • Thread