• 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
a handler runs after compile, but never again
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

a handler runs after compile, but never again


  • Subject: a handler runs after compile, but never again
  • From: Mátyás Ferenc Farkas <email@hidden>
  • Date: Sun, 30 Nov 2003 16:40:55 +0100

hi,

there is the troublemaker:

tell application "Finder"
set filepathstring to "Macintosh HD:Users:spoun:Desktop:demofolder:mappa Ordner:mappa2:mappa3:"
log theContainer(filepathstring) of me
end tell

on theContainer(filepath)
tell application "Finder"
set AppleScript's text item delimiters to ":"
set theContainer to (filepath's text items 1 thru ((count (every text item in (filepath as string))) - 2)) as string
set AppleScript's text item delimiters to ""
set theContainer to theContainer & ":" as string
end tell
return theContainer
end theContainer

if i modify something, and run once it runs, but if i run it one more time, the error message:

Script untitled 6 started
tell current application
theContainer("Macintosh HD:Users:spoun:Desktop:demofolder:mappa Ordner:mappa2:mappa3:")
theContainer("Macintosh HD:Users:spoun:Desktop:demofolder:mappa Ordner:mappa2:mappa3:")
end tell
Script untitled 6 finished
--> +script; doesn't understand the theContainer message.

i need this workaround, becouse the filepath does not exists at run time as an alias. thanks for any comments.

--
Ferenc Farkas Matyas
-=-=-=-=-=-=-=-=-=-=-=-=-=-
email/iChat : spoun @ mac.com
-=-=-=-=-=-=-=-=-=-=-=-=-=-
_______________________________________________
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.

  • Follow-Ups:
    • Re: a handler runs after compile, but never again
      • From: Mark Butcher <email@hidden>
    • Re: a handler runs after compile, but never again
      • From: Graff <email@hidden>
    • Re: a handler runs after compile, but never again
      • From: Michelle Steiner <email@hidden>
  • Prev by Date: Re: list disks on Panther
  • Next by Date: Re: list disks on Panther
  • Previous by thread: Re: list disks on Panther
  • Next by thread: Re: a handler runs after compile, but never again
  • Index(es):
    • Date
    • Thread