• 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
How to adjust this script to work on Snow Leopard?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to adjust this script to work on Snow Leopard?


  • Subject: How to adjust this script to work on Snow Leopard?
  • From: Bert Groeneveld <email@hidden>
  • Date: Mon, 22 Nov 2010 10:14:17 +0100

Hi,

This (part of a) script only runs on 10.5.8 and not on 10.6. Could anyone tell how to adjust this snippet to make it compatible with 10.6?

tell application "Open_ProductGroups_Server_v01" of machine "eppc://applescript:email@hidden"
      set ProductGroups to open_TXT_File()
end tell




- - - - - - - Background info: - - - - - - -

The (Intel) Mac with IP address 192.168.10.21 still has Mac OS 10.5.8 Server installed. I didn't change anything on that Mac.
The application "Open_ProductGroups_Server_v01" is a simple (stay open) applescript that runs on the server and contains the following handler:

on open_TXT_File()
set myFile to "Fotostudio-ServerDisk:B:BIJENKORF TEST MAP BERT AFBLIJVEN:Productgroups:ProductGroups.txt"
set myTXT_File to open for access myFile
set ProductGroups to read myTXT_File
set AppleScript's text item delimiters to "
"

set ProductGroups to every text item of ProductGroups

set AppleScript's text item delimiters to ""
close access myTXT_File
return ProductGroups
end open_TXT_File

- - - - - - - End Background info. - - - - - - -
 _______________________________________________
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: How to adjust this script to work on Snow Leopard?
      • From: "email@hidden" <email@hidden>
    • Re: How to adjust this script to work on Snow Leopard?
      • From: KOENIG Yvan <email@hidden>
  • Prev by Date: Re: count of Finder windows: Is this a bug?
  • Next by Date: Re: How to adjust this script to work on Snow Leopard?
  • Previous by thread: Checking unread email account in Mail.app and Outlook 2011
  • Next by thread: Re: How to adjust this script to work on Snow Leopard?
  • Index(es):
    • Date
    • Thread